Hi there!
I am practising with loops and I would like to create something similar to the black picture attached.
I have made a loop and I have made this:
As you can see, I would need:
-
To increase gradually the Inclination of the lines. Now all of them have y+50 but I don’t know how Increase that value progressively in the loop.
-
To reduce Length of the lines progressively following Pink diagonal.
-
Being able to start another loop with new lines exactly located where the first lines finish, to repeat something similar with another values.
Can you please help me?
size(1000,1000);
background(255);
stroke(0);
strokeWeight(3);
for(int y=0;y<1000;y=y+20){
line(0,y,500,y+50);
}
Thanks!