I followed this tutorial on Youtube:
https://www.youtube.com/watch?v=UZoVBMgzULk&list=PLbLdd1fdNg5yp0x3_oRWeBur0FVX8PvFH&index=32
void setup() {
size(800, 800);
background(#eeeeee);
}
void draw() {
background(#eeeeee);
for(int i =0; i<width; i+=100){
}
translate(width/2, height/2);
for (int n=0; n<30; n++) {
stroke(random(255), random(255), random(255));
for (int a = 0; a<360; a++) {
float x = random(50, 150);
float xx = random(150, 350);
pushMatrix();
rotate(radians(a));
strokeCap(CORNER);
strokeWeight(4);
//stroke(40);
line(x, 0, xx, 0);
popMatrix();
}
}
saveFrame("output/image####.png");
}
void keyPressed() {
redraw();
}
0 comments:
Post a Comment