Enum ColorAnimationTextDirection
Defines the direction in which the color wave travels across lines of animated text.
Namespace: Scylla.Core.Util.Effects
Assembly: ScyllaCore.dll
Syntax
public enum ColorAnimationTextDirection
Remarks
Used by ColorAnimationText to control how the color gradient is mapped across text lines as the animation progresses. Each direction mode produces a distinct visual effect by altering the per-line gradient position that is sampled each frame.
The direction affects the mapping from line index to gradient position:
- Up and Down produce a uniform traveling wave where all lines move in the same direction with a spatial offset between them.
- PingPong applies a triangle-wave multiplier to the progress, making the wave oscillate back and forth within each cycle.
- Shuffle assigns each line an independent randomized phase offset, so lines animate with no spatial relationship to their neighbors.
Fields
| Name | Description |
|---|---|
| Down | The color wave travels downward, cascading from the top of the text block toward the bottom. This is the default direction. |
| PingPong | The color wave oscillates, flowing upward then downward (or vice versa) within each animation cycle, creating a breathing or pulsing visual effect. |
| Shuffle | Each line independently animates with a randomized phase offset, producing a scattered or chaotic effect where no spatial wave pattern is visible across lines. |
| Up | The color wave travels upward, flowing from the bottom of the text block toward the top. |