chickadee » macaw » rgb8-pointer

rgb8-at uchar*_pointer #!optional parentprocedure
rgb8-pointer rgb8_1procedure
set! (rgb8-pointer rgb8_1) uchar*_pointersetter
rgb8-parent rgb8_1procedure
set! (rgb8-parent rgb8_1) parentsetter

rgb8-at creates an rgb8 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 unsigned 8-bit integers in the order r, g, b, a. You can use rgb8-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.