Skip to content

Instantly share code, notes, and snippets.

@brysonian
Created March 31, 2009 20:15
Show Gist options
  • Save brysonian/88385 to your computer and use it in GitHub Desktop.
Save brysonian/88385 to your computer and use it in GitHub Desktop.
[Processing] poly function that takes a java Polygon
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