Class RotateEffect

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

public class RotateEffect extends Effect
Permanently rotates text in-place for each cell. Doesn't change over time.
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}
  • 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