Skip to content

Instantly share code, notes, and snippets.

@quave
Created January 2, 2014 14:57
Show Gist options
  • Save quave/8220417 to your computer and use it in GitHub Desktop.
Save quave/8220417 to your computer and use it in GitHub Desktop.
// comments go here
void setup() {
size(800,600);
background(0);
noLoop();
noiseDetail(8 ,0.63);
PFont fontA = loadFont("ubuntu");
textFont(fontA, 14);
}
void draw() {
for (int x=0; x<width; x++) {
for (int y=0; y<height; y++) {
int color = noise(x / width, y / height) * 254;
color = color > 254 ? 254 - color : color;
stroke(color);
point(x, y);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment