Module pattern

Module pattern 

Source
Expand description

§Pattern Interface

A pattern, most similar to a WLED effect, generates colors for LEDs based on time and position.

A Pattern receives:

  • The layout of the LEDs (through its type parameters)
  • Configuration parameters during initialization
  • The current time during each update cycle

And produces:

  • A sequence of colors for each LED in the layout

For the library of built-in patterns, see patterns.

Traits§

Pattern
Trait for creating visual effects on LED layouts.