Color.hsv
Jump to navigation
Jump to search
In Mini Micro, the color.hsv
method returns a color string from Hue, Saturation, and Value values in the range 0-255.
Arguments
Parameter Name | Meaning |
---|---|
h | red component (0-255) |
s | green component (0-255) |
v | blue component (0-255) |
a | alpha component (0-255). Defaults to 255. |
First three parameters are required. The result is a 9-character color string with an alpha.
See also: color.rgba
Example
print color.hsv(50,100,200)
Output:
#BAC87AFF