Liking cljdoc? Tell your friends :D

think.image.pixel


a-shiftclj

source

b-shiftclj

source

blendcljmacro

(blend alpha val one-minus-alpha dest)
source

clampclj

(clamp item min-val max-val)

Makes sure item is between min-val and max-val, clamping it to that range if necessary.

Makes sure item is between min-val and max-val, clamping it to
that range if necessary.
sourceraw docstring

color-int-to-unpackedclj

(color-int-to-unpacked px shift-amount)
source

color-unpacked-to-intclj

(color-unpacked-to-int bt shift-amount)
source

denorm-colorclj

(denorm-color c)

Inverse function for norm-color, transforms colors from [0, 1] to [0, 255].

Inverse function for norm-color, transforms colors from [0, 1]
to [0, 255].
sourceraw docstring

double-roundclj

(double-round number)
source

double-to-intclj

(double-to-int dval)
source

g-shiftclj

source

get-masked-pixelclj

(get-masked-pixel color)

Make sure alpha is always 1. This allows writing out the image and checking the result but still ensures we are ignoring alpha which should have been multiplied through by this stage of the pipeline

Make sure alpha is always 1.  This allows writing out the image and checking
the result but still ensures we are ignoring alpha which should have been multiplied
through by this stage of the pipeline
sourceraw docstring

image-requires-alpha-channelclj

(image-requires-alpha-channel img)
source

is-valid-pixel-location?clj

(is-valid-pixel-location? x y width height)
source

mode-pixelclj

(mode-pixel s)
source

norm-colorclj

(norm-color c)

Transform a color intensity from [0, 255] to [0, 1].

Transform a color intensity from [0, 255] to [0, 1].
sourceraw docstring

pack-pixelclj

(pack-pixel data)
(pack-pixel r g b a)

Converts RGBA values to a single integer representing the color.

Converts RGBA values to a single integer representing the color.
sourceraw docstring

pixel-location-to-indexclj

(pixel-location-to-index x y width)
source

r-shiftclj

source

unpack-pixelclj

(unpack-pixel px)

Returns [R G B A]. Note that java does not have unsigned types so some of these may be negative

Returns [R G B A].  Note that java does not have unsigned types
so some of these may be negative
sourceraw docstring

with-unpacked-pixelcljmacro

(with-unpacked-pixel px & body)

Unpack a color integer into RGBA values and bind them to r, g, b, and a variables locally.

Unpack a color integer into RGBA values and bind them
to r, g, b, and a variables locally.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close