Reports a number in the range 0 to 140, not including 140 itself, that represents the given color, specified in the RGB spectrum, in NetLogo's color space.
All three inputs should be in the range 0 to 255.
The color reported may be only an approximation, since the NetLogo color space does not include all possible colors. (See approximate-hsb for a description of what parts of the HSB color space NetLogo colors cover; this is difficult to characterize in RGB terms.)
show approximate-rgb 0 0 0 => 0 ;; black show approximate-rgb 0 255 255 => 85.2 ;; cyan
See also extract-rgb, approximate-hsb, and extract-hsb.
Take me to the full NetLogo Dictionary