Difference between revisions of "Color.hsv"
Jump to navigation
Jump to search
(Initial. Duplicated from color.rgb) |
(No difference)
|
Latest revision as of 14:32, 29 March 2025
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