Step
The Step modifier transforms the curve into a step function.
Types
- Number
- List
- RGBColor
- HSVColor
- Vector3
Constructor
new Step (
stepLength: number,
rangeStart: number | undefined = undefined,
rangeEnd: number | undefined = undefined,
)
stepLength: The vertical distance between each step.rangeStart: The time at which the modifier begins to modify the curve.rangeEnd: The time at which the modifier no longer modifies the curve.\
import { Modifiers } from 'curves'; // Import Modifiers
const numberStep = new Modifiers.Number.Step(1); // Create a new number step modifier
const rgbStep = new Modifiers.RGB.Step(25); // Create a new color step modifier