Class CarouselEffect
java.lang.Object
com.github.tommyettinger.textra.Effect
com.github.tommyettinger.textra.effects.CarouselEffect
Makes each glyph spin in place, as if around a central pole.
Parameters:
The
Example usage:
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}
-
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