Class RotateEffect
java.lang.Object
com.github.tommyettinger.textra.Effect
com.github.tommyettinger.textra.effects.RotateEffect
Permanently rotates text in-place for each cell. Doesn't change over time.
Parameters:
The
Example usage:
Parameters:
rotation
The
rotation
is measured in degrees counterclockwise, and defaults to 90 .
Example usage:
{ROTATE=30}Rotates characters 30 degrees counterclockwise, which would "undo" italic effects, mostly.{ENDROTATE}
{ROTATE=180}Rotates characters 180 degrees counterclockwise, which flips them upside-down.{ENDROTATE}
-
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