approximate-rgb 4.0
approximate-rgb red green blue
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.
show approximate-rgb 0 0 0
=> 0  ;; black
show approximate-rgb 0 255 255
=> 85.2 ;; cyanSee also extract-rgb, approximate-hsb, and extract-hsb.