NumberCurve¶
Global · NumberCurve · server and client scripts
NumberCurve creates an immutable curve of numbers over normalized time from 0 to 1, such as particle size or opacity over a particle's lifetime. To inspect a curve's points, see NumberCurve.
new¶
NumberCurve.new creates a curve from an array of 2 to 8 point tables { Time = t, Value = v, Envelope = e? }. The first point must be at time 0, the last at time 1, and times must be in non-decreasing order.
Example
linear¶
NumberCurve.linear creates a constant curve at a or a linear ramp from a at time 0 to b at time 1.