chickadee » macaw » array-ref

array-ref array_1 x yprocedure

Returns an color object which directly accesses the memory of the array at the coordinates x, y. The returned color type depends on the given array type (e.g. giving an hsl-array will result in an hsl color). Modifying the color will modify the array data. The color's parent will be automatically set to the array, so that the array will not be garbage collected while the color is using its memory.

Signals an exception if x or y are out of bounds.