getAnimations method
Generates per-character hue-shifted colors across the rainbow.
Implementation
@override
List<CharacterAnimation> getAnimations(double progress, int charCount) {
if (charCount == 0) return [];
final curved = applyCurve(progress);
return List.generate(charCount, (index) {
final hue = (index / charCount + curved * cycleCount) % 1.0;
final color = HSLColor.fromAHSL(1.0, hue * 360, saturation, lightness).toColor();
return CharacterAnimation(color: color);
});
}