Class AttentionEffect

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

public class AttentionEffect
extends Effect
Makes the hovered-over glyph stretch on y, as well as some glyphs near it. Doesn't change over time, but does change with pointer movement.
  • Constructor Details

    • AttentionEffect

      public AttentionEffect​(TypingLabel label, java.lang.String[] params)
  • 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