Fledex.Effect.Rotation (fledex v0.5.0)
View SourceSummary
Functions
Helper function mainy intended for internal use to rotate the sequence of values by an offset
.
Functions
@spec do_apply( leds :: [Fledex.Color.Types.colorint()], count :: non_neg_integer(), config :: keyword(), triggers :: map(), context :: map() ) :: {[Fledex.Color.Types.colorint()], non_neg_integer(), map()}
@spec rotate( [Fledex.Color.Types.colorint()], non_neg_integer(), pos_integer(), boolean() ) :: [ Fledex.Color.Types.colorint() ]
Helper function mainy intended for internal use to rotate the sequence of values by an offset
.
The rotation can happen with the offset to the left or to the right.