animator.skia.uniqueColor

animator.skia.uniqueColor(l: float = 71, s: float = 100) animator.skia.Color4f

Returns a unique color every time it is called. Uses HSLuv (https://www.hsluv.org/) internally.

Parameters
  • l – Lightness of the generated color. Must be between 0 and 100. Interesting values: 50, 71, 76.

  • s – Saturation of the generated color. Must be between 0 and 100.

Returns

A tuple of (r, g, b, a). a is always 1.