chickadee » macaw » hsl-at

hsl-at float*_pointer #!optional parentprocedure
hsl-pointer hsl_1procedure
set! (hsl-pointer hsl_1) float*_pointersetter
hsl-parent hsl_1procedure
set! (hsl-parent hsl_1) parentsetter

hsl-at creates an hsl color which reads and writes to the memory at pointer, which can be a pointer or a locative. The memory starting at pointer must contain four 32-bit floats in the order h, s, l, a. You can use hsl-pointer to get or set the pointer.

The optional parent can be any object that the color depends on. This reference prevents the parent from being garbage collected while the color is still accessing the parent's memory.