toHSV
Returns the color in HSV representation. As HSV object, it has the following properties:
h
-- hue, an integer between 0 and 360s
-- saturation, floating point between 0 and 1v
-- value, floating point between 0 and 1a
-- alpha, floating point between 0 and 1
This does not modify the current object, it creates a new one instead.
Returns
Object
An object with h, s, v and a fields.
In this article