ColorCurve¶
Global · ColorCurve · server and client scripts
ColorCurve creates an immutable curve of Color values over normalized time from 0 to 1, such as a particle color ramp over a particle's lifetime. To inspect a curve's points, see ColorCurve.
new¶
ColorCurve.new creates a curve from an array of 2 to 8 point tables { Time = t, Color = color }. The first point must be at time 0, the last at time 1, and times must be in non-decreasing order.
Example
linear¶
ColorCurve.linear creates a constant color curve at c0 or a linear ramp from c0 at time 0 to c1 at time 1.