animator.skia.HSVToColor¶
- animator.skia.HSVToColor(hsv: List[float], alpha: int = 255) int ¶
Converts HSV components to an ARGB color. Alpha is passed through unchanged.
- Parameters
hsv – three element array which holds the input HSV components. hsv[0] represents hsv hue, an angle from 0 to less than 360. hsv[1] represents hsv saturation, and varies from 0 to 1. hsv[2] represents hsv value, and varies from 0 to 1.
alpha – alpha component of the returned ARGB color
- Returns
ARGB equivalent to HSV