Skip to content

Instantly share code, notes, and snippets.

@smcl
Created April 17, 2011 04:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smcl/923752 to your computer and use it in GitHub Desktop.
Save smcl/923752 to your computer and use it in GitHub Desktop.
Not actually Javascript, but there's no "processing" option in the Language dropdown for a gist
void dump_image() {
beginShape(POINTS);
int i;
for(i=0; i<cols.length; i++) {
stroke(cols[i]);
vertex(xs[i], ys[i], zs[i]);
if(numPoints != 0 && i%numPoints ==0) {
endShape();
beginShape(POINTS);
}
}
endShape();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment