Class ScaleEffect
java.lang.Object
com.github.tommyettinger.textra.Effect
com.github.tommyettinger.textra.effects.ScaleEffect
Permanently sets the size of text. Doesn't change over time.
Parameters:
The
Example usage:
Parameters:
sizeX;sizeY
The
sizeX
is multiplied with the width of a cell. If sizeY is not specified, this is multiplied with the
height of a cell as well. Defaults to 1.0 .
The sizeY
is multiplied with the height of a cell. If sizeY is present, then sizeX only affects width.
Defaults to 2.0 .
Example usage:
{SCALE=1.5}Makes glyphs 1.5x wider and 1.5x taller.{ENDSCALE}
{SCALE=2;1}Makes glyphs 2x wider and their normal height.{ENDSCALE}
-
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