Reports a number in the range 0 to 140, not including 140 itself, that represents the given color, specified in the HSB spectrum, in NetLogo's color space.
All three values 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. (It contains only certain discrete hues, and for each hue, either saturation or brightness may vary, but not both -- at least one of the two is always 255.)
show approximate-hsb 0 0 0 => 0 ;; (black) show approximate-hsb 127.5 255 255 => 85.2 ;; (cyan)
See also extract-hsb, approximate-rgb, extract-rgb.
Take me to the full NetLogo Dictionary