Created
April 17, 2011 04:08
-
-
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
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 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