animator.skia.ColorToHSV¶
- animator.skia.ColorToHSV(color: int) List[float] ¶
Converts ARGB color to its HSV components. Alpha in ARGB is ignored.
- Parameters
color – ARGB color to convert
- Returns
three element array which holds the resulting HSV components. hsv[0] contains hsv hue, a value from 0 to less than 360. hsv[1] contains hsv saturation, a value from 0 to 1. hsv[2] contains hsv value, a value from 0 to 1.