addColor Method
Append a new RenderSchedule.ColorEntry to the timeline. time
must be more recent than any previously-appended color entries.
addColor(time: number, color: undefined | RgbColor | { blue: number, green: number, red: number }, interpolation: RenderSchedule.Interpolation = Interpolation.Linear): void
Parameter | Type | Description |
---|---|---|
time | number | |
color | undefined | RgbColor | { blue: number, green: number, red: number } | |
interpolation | RenderSchedule.Interpolation |
Returns - void
Defined in
- core/common/src/RenderSchedule.ts Line 1277
Last Updated: 16 April, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.