Class MeetEffect

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

public class MeetEffect extends Effect
Moves the text from random starting points, easing glyphs into their final positions. Doesn't repeat itself. This is similar to SlideEffect and EaseEffect, except this uses random starting points.
Parameters: distance;extent;elastic;inside
The distance is how many line-heights each glyph should start away from its destination; defaults to 2 . The extent affects how long the animation should be extended by (not in any unit); defaults to 1.0 . If elastic is true, the glyphs will wiggle into position; defaults to false, which uses linear movement. If inside is true, glyphs will start a random amount less than distance to their destination; defaults to false.
Example usage: {MEET=5;2.8;y;y}Each glyph here will wiggle into position from very randomly-scattered points, doing so quickly.{ENDMEET} {MEET=-3;0.3}Each glyph here will slide from an equal distance and random angle, going into place very slowly.{ENDMEET}
  • 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