Graphics#quadraticCurveTo()

quadraticCurveTo(cpX, cpY, toX, toY) → {PIXI.Graphics}

Calculate the points for a quadratic bezier curve and then draws it.
Based on: https://stackoverflow.com/questions/785097/how-do-i-implement-a-bezier-curve-in-c

Parameters
Name Type Description
cpX Number

Control point x

cpY Number

Control point y

toX Number

Destination point x

toY Number

Destination point y

Returns
Source code: pixi/primitives/Graphics.js (Line 221)
doc_phaser
2017-02-14 10:50:23
Comments
Leave a Comment

Please login to continue.