Class GradientEffect

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

public class GradientEffect
extends Effect
Tints the text in a gradient pattern.
  • Constructor Details

    • GradientEffect

      public GradientEffect​(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