beginContour/endContour added to PGraphics and PApplet

This commit is contained in:
codeanticode
2011-12-12 04:55:28 +00:00
parent b3e899524b
commit a67779598d
2 changed files with 23 additions and 1 deletions
+12
View File
@@ -9881,6 +9881,18 @@ public class PApplet extends Applet
}
public void beginContour() {
if (recorder != null) recorder.beginContour();
g.beginContour();
}
public void endContour() {
if (recorder != null) recorder.endContour();
g.endContour();
}
public void endShape() {
if (recorder != null) recorder.endShape();
g.endShape();
+11 -1
View File
@@ -1381,7 +1381,17 @@ public class PGraphics extends PImage implements PConstants {
"or shapes with holes.");
}
public void beginContour() {
showMissingWarning("beginContour");
}
public void endContour() {
showMissingWarning("endContour");
}
public void endShape() {
endShape(OPEN);
}