Name

CRC.quadraticCurveTo() — adds a quadratic Bézier curve to the path

Synopsis

void quadraticCurveTo(float cpX, float cpY,
                      float x, float y)

Arguments

cpX, cpY

The coordinates of the control point

x, y

The coordinates of the endpoint of the curve

Description

This method adds a quadratic Bézier curve segment to the current subpath. The curve starts at the current point and ends at (x,y). The control point (cpX, cpY) specifies the shape of the curve between these two points. (The mathematics of Bézier curves is beyond the scope of this book, however.) When this method returns, the current position is (x,y).

Get Canvas Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.