Class EmergeEffect

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

public class EmergeEffect extends Effect
Stretches the text vertically from the baseline up to its full height. Doesn't repeat itself.
Parameters: speed;elastic
The speed affects how fast the glyphs should stretch out; defaults to 1.0 . If elastic is true, the glyphs will wiggle to their full size; defaults to false, which uses linear movement.
Example usage: {EMERGE=2.8;y}Each glyph here will wiggle into its full size quickly.{ENDEMERGE} {EMERGE=0.3}Each glyph here will very slowly stretch to its full size.{ENDEMERGE}
  • 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