animator.skia.RGBToHSV

animator.skia.RGBToHSV(red: int, green: int, blue: int) List[float]

Converts RGB to its HSV components.

Parameters
  • red (int) – red component value from 0 to 255

  • green (int) – green component value from 0 to 255

  • blue (int) – blue component value from 0 to 255

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.