extract-rgb

extract-rgb color

Reports a list of three values in the range 0 to 255 representing the levels of red, green, and blue, respectively, of the given NetLogo color in the range 0 to 140, not including 140 itself.

show extract-rgb red
=> [215 50 41]
show extract-rgb cyan
=> [84 196 196]

See also approximate-rgb, approximate-hsb, extract-hsb.

Take me to the full NetLogo Dictionary