extract-hsb

extract-hsb color

Reports a list of three values, the first (hue) in the range of 0 to 360, the second and third (brightness and saturation) in the range of in the range 0 to 100, of the given NetLogo color in the range 0 to 140, not including 140 itself.

show extract-hsb red
=> [3.103 80.93 84.314]
show extract-hsb cyan
=> [180 57.143 76.863]

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

Take me to the full NetLogo Dictionary