The StoryboardColourCommand is used within the osu! storyboard system to transition the Colour property of a Drawable over a specified time range. It applies an initial color at the startTime and transitions to an endValue at the endTime using a specified Easing function.
When applied to a Drawable, it performs the following sequence:
- Sets the initial color to
StartValue. - Applies a color fade from
StartValue to EndValue over the command's duration using the provided Easing.
// Example instantiation of a StoryboardColourCommand
// Parameters: Easing, startTime, endTime, startValue, endValue
var command = new StoryboardColourCommand(
Easing.Linear,
0.0,
2.0,
new Color4(1, 0, 0, 1), // Red
new Color4(0, 0, 1, 1) // Blue
);