Phaser API Documentation

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

Description:

A quadratic bezier interpolation method.

Parameters:

name type description
t number

The percentage of interpolation, between 0 and 1.

p0 number

The start point.

p1 number

The control point.

p2 number

The end point.

Returns:
Description:

The interpolated value.

Type:
  • number
Examples: