-
Notifications
You must be signed in to change notification settings - Fork 3
Canvas clip
mohayonao edited this page Aug 11, 2014
·
1 revision
Clips a region of any shape.
canvas
.clip(10, 20, 260, 80)
.stroke(10).fill(2)
.ellipse(150, 50, 130, 40);
canvas.clip(x1, y1, x2, y2);
-
x1: int
- x-coordinate of the first clipping point
-
y1: int
- y-coordinate of the first clipping point
-
x2: int
- x-coordinate of the second clipping point
-
y2: int
- y-coordinate of the second clipping point
Canvas: self for method chaining