Led Color Provider

A helper object to simplify configuration of colors for effects.

Format

{
  "Full": <LedColor>,
  "PerLed": [<LedColor>],
  "Gradient": <LedColorGradient>
}

Important: Only one of the above variables will be used.

Examples

{
  "PerLed": [
    [255, 0, 0],
    [0, 255, 0],
    [255, 0, 0],
    ...
  ]
}
{
  "Full": [255, 0, 0]
}
{
  "Gradient": [
    [0, [255, 0, 0]],
    [0.5, [0, 255, 0]],
    [1.0, [255, 0, 0]]
  ]
}