Skip to content

Commit fbec826

Browse files
committed
fixing processing#216 contour winding
1 parent 647ff83 commit fbec826

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

content/examples/Topics/Create Shapes/BeginEndContour/BeginEndContour.pde

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ void setup() {
2424
// Interior part of shape
2525
s.beginContour();
2626
s.vertex(-10,-10);
27-
s.vertex(10,-10);
28-
s.vertex(10,10);
2927
s.vertex(-10,10);
28+
s.vertex(10,10);
29+
s.vertex(10,-10);
3030
s.endContour();
3131

3232
// Finishing off shape
@@ -41,4 +41,3 @@ void draw() {
4141
s.rotate(0.01);
4242
shape(s);
4343
}
44-

content/static/tutorials/pshape/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,9 @@ <h3>More Custom PShapes</h3>
447447
// Interior part of shape
448448
s.beginContour();
449449
s.vertex(-10,-10);
450-
s.vertex(10,-10);
451-
s.vertex(10,10);
452450
s.vertex(-10,10);
453-
s.vertex(-10,-10);
451+
s.vertex(10,10);
452+
s.vertex(10,-10);
454453
s.endContour();
455454

456455
// Finishing off shape

0 commit comments

Comments
 (0)