- Show Code
/** @peep sketch */
float t = 0;
void setup() {
size(400, 400);
frameRate(50);
fill(200);
strokeWeight(0.4);
}
void draw() {
loadPixels();
float xoff = 0.0;
for (int x = 0; x < width; x++) {
noiseDetail(4, 0.5);
float yoff = 0.0;
for (int y = 0; y < height; y ++) {
float bright = map(noise(xoff, yoff), 0, 1, 0, 255);
pixels[x+y*width]=color(bright);
yoff+=0.01;
}
xoff +=0.01;
}
updatePixels();
}
Comments
Nobody has said anything yet.