Created
January 2, 2014 14:57
-
-
Save quave/8220417 to your computer and use it in GitHub Desktop.
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
// 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