Phaser API Documentation

  Version: 
<static> CubicBezier(t, p0, p1, p2, p3)

Description:

A cubic bezier interpolation method.

https://medium.com/@adrian_cooney/bezier-interpolation-13b68563313a

Parameters:

name type description
t number

The percentage of interpolation, between 0 and 1.

p0 number

The start point.

p1 number

The first control point.

p2 number

The second control point.

p3 number

The end point.

Returns:
Description:

The interpolated value.

Type:
  • number
Examples: