@ginden/blinkstick-v2
    Preparing search index...

    Function convertSimpleFramesToComplexFrame

    • Experimental

      This function allows you to convert a set of simple frames into complex frames - effectively animating each LED independently.

      1. A complex frame is emitted whenever any LED changes its colour.

      2. If a LED changes its colour, all other LEDs that still have at least one more simple frame will also transition to their next frame – even if their current one has not finished yet. This keeps colour-changes across LEDs perfectly aligned (see the third test case).

      3. When a LED runs out of simple frames it transitions to fillMissingEndWith parameter value, defaulting to black.

      Parameters

      • simpleFrames: Iterable<SimpleFrame, any, any>[]
      • fillMissingEndWith: RgbTuple = ...
      • ledCount: number = simpleFrames.length

      Returns Iterable<ComplexFrame>