Class SpinEffect

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

public class SpinEffect
extends Effect
Rotates each glyph quickly and slows down as it approaches some count of rotations. Doesn't repeat itself.
  • Constructor Details

    • SpinEffect

      public SpinEffect​(TypingLabel label, java.lang.String[] params)
  • 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