raylib/image
src/raylib/image.tur
statically-sized CPU pixel buffers (Track C / U4).
defopaque
Image
(Image [w h] :int))
defn
rgba
(rgba [r : int g : int b : int a : int] :)
pack four 0..255 channel values into a 0xRRGGBBAA pixel.
defn
rgba-r
(rgba-r [px : int] :)
extract a channel (0..255) from a packed pixel.
defn
rgba-g
(rgba-g [px : int] :)
defn
rgba-b
(rgba-b [px : int] :)
defn
rgba-a
(rgba-a [px : int] :)
defn
image-blank
(image-blank [w h])
a fresh `width` x `height` fully-transparent image (all
defn
image-filled
(image-filled [w h])
a fresh `width` x `height` image with every pixel set to
defn
image-free
(image-free [w h])
free an image and its backing pixels.
defn
image-width
(image-width [w h])
runtime width (equals the static `w`).
defn
image-height
(image-height [w h])
runtime height (equals the static `h`).
defn
image-get
(image-get [w h])
bounds-checked packed-RGBA pixel sampler at (x, y).
defn
image-set!
(image-set! [w h])
bounds-checked packed-RGBA pixel write at (x, y).
defn
image-overlay
(image-overlay [w h])
composite `over` onto `base` (over's opaque pixels win);
defn
image-scale-rgb
(image-scale-rgb [w h])
multiply the R/G/B channels of every pixel by `f`
Internal definitions
__img-new-raw__img-free-raw__img-width-raw__img-height-raw__img-get-raw__img-set-raw__img-overlay-raw__img-scale-rgb-raw