Created
March 31, 2009 20:15
-
-
Save brysonian/88385 to your computer and use it in GitHub Desktop.
[Processing] poly function that takes a java Polygon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void poly(Polygon p) { | |
beginShape(); | |
for (int i=0; i<p.npoints; i++) { | |
vertex(p.xpoints[i], p.ypoints[i]); | |
} | |
endShape(CLOSE); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment