hsv
Encodes a colour using HSV (hue, saturation, value) coordinates.
Syntax
-
hsv(h, s, v)
-
h
is a real number -
s
is a real number in [0, 1] -
v
is a real number in [0, 1]
-
Description
hsv(h, s, v)
is the colour object corresponding to the colour with HSV (hue, saturation, value) coordinates (h, s, v)
. The hue is a real number mod 360 while both saturation and value must belong to [0, 1].
Examples
hsv(240, 1, 0.5)
rgba(0.000, 0.000, 0.500, 1.000) (#000080, navy)