Class CarouselEffect

java.lang.Object
com.github.tommyettinger.textra.Effect
com.github.tommyettinger.textra.effects.CarouselEffect

public class CarouselEffect extends Effect
Makes each glyph spin in place, as if around a central pole.
Parameters: frequency;duration
The frequency is how often the spin repeats per 2-second interval. The duration is how many seconds the spin should repeat, or _ to repeat forever; defaults to positive infinity.
Example usage: {CAROUSEL=0.5;_}Each glyph here will slowly spin forever.{ENDCAROUSEL} {CAROUSEL=2;5}Each glyph here will spin quickly for 5 seconds total.{ENDCAROUSEL}
  • Constructor Details

  • Method Details

    • onApply

      protected void onApply(long glyph, int localIndex, int globalIndex, float delta)
      Description copied from class: Effect
      Called when this effect should be applied to the given glyph.
      Specified by:
      onApply in class Effect