Get color at current position
point
pointat position
pointxy x y
Returns an array of color components {r g b opacity}
of a point in the current positiotion of a
turtle (point
), in the position specified as an array or list
of coordinates (pointat
), or in a position specified with the
coordinates x and y (pointxy
).
Example:
ht
repeat 1e6 [
"p := array random 70 random 70
"c := pointat :p
if :c,4 < 5 ["c := random 1000]
(setpointat :p :c 80)
]
Output: a drawing in the graphics window.
See also:
Table of Content