calculateStops method
Implementation
List<double> calculateStops(int colorCount, double progress) {
if (colorCount < 2) return [0.0, 1.0]; // Ensure at least two stops
double step = 0.6 / (colorCount - 1); // Adjust step based on range
return List.generate(
colorCount,
(index) => (progress - 0.3) + (index * step),
);
}