Name

CRC.moveTo() — sets the current position and begins a new subpath

Synopsis

void moveTo(float x, float y)

Arguments

x, y

The coordinates of the new current point

Description

moveTo() sets the current position to (x,y) and begins a new subpath with this as its first point. If there was a previous subpath and it consisted of just one point, that empty subpath is removed from the path.

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.