extract-hsb

extract-hsb color

Reports a list of three values in the range 0 to 255 representing the hue, saturation and brightness, respectively, of the given NetLogo color in the range 0 to 140, not including 140 itself.

show extract-hsb red
=> [2.198 206.372 215]
show extract-hsb cyan
=> [127.5 145.714 196]

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

Take me to the full NetLogo Dictionary