Is there any command or function that make a geometry rotate?
in
Programming Questions
•
4 months ago
I was trying to rotate some lines, but I don't know if its possible calling a function.
Can I?
What I want to do is rotate each line in a different angle.
int x= 50;
int y = 50;
int spacing = 2;
int len = 20;
int endLegs = 150;
size(200,200);
background(100);
while(x <= endLegs){
line(x,y,x,y+len);
x = x + spacing;
}
Thanks.
1