API Reference › Percent › Percent.lerp
method

Percent.lerp

Percent.lerp(a, b, t) -> fixed

Interpolates from a to b by t, clamping t to [0, 1] first so the result never overshoots the endpoints.

Example

program Demo {
  handler Step phase Update {
    let x = Percent.lerp(startX, endX, progress)
  }
}
← All symbols