Fledex.Effect.Rotation (fledex v0.5.0)

View Source

Summary

Functions

Helper function mainy intended for internal use to rotate the sequence of values by an offset.

Functions

do_apply(leds, count, config, triggers, context)

@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()}

rotate(vals, count, offset, rotate_left)

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.

stretch(arg, stretch)