Class EmergeEffect
java.lang.Object
com.github.tommyettinger.textra.Effect
com.github.tommyettinger.textra.effects.EmergeEffect
Stretches the text vertically from the baseline up to its full height. Doesn't repeat itself.
Parameters:
The
Example usage:
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}
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.tommyettinger.textra.Effect
Effect.EffectBuilder
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
onApply
(long glyph, int localIndex, int globalIndex, float delta) Called when this effect should be applied to the given glyph.Methods inherited from class com.github.tommyettinger.textra.Effect
apply, assignTokenName, calculateFadeout, calculateProgress, calculateProgress, calculateProgress, isFinished, paramAsBoolean, paramAsColor, paramAsFloat, update