chickadee » macaw » hsl-array-ref-pointer

array-ref-pointer array_1 x yprocedure
rgb-array-ref-pointer rgb-array_1 x yprocedure
rgb8-array-ref-pointer rgb8-array_1 x yprocedure
hsl-array-ref-pointer hsl-array_1 x yprocedure

Like array-ref etc. but returns a pointer or locative instead of a color object. This must be used with caution! The return value will be a pointer if the array holds a pointer, or a locative if the array holds a locative.

These procedures are equivalent to e.g. (rgb-pointer (rgb-array-ref rgb-array_1 x y)) but much more efficient. They are useful for optimization when using low-level color math procedures.