float x, y;
void setup() {
size(800, 600);
strokeWeight(10);
}
void draw() {
//background(#68CEF5);
fill(0, 15);
rect(-50, -50, width + 100, height + 100);
translate(width/2, height/2);
rotate(-frameCount/80.0);
for (int i = 0; i < width; i = i+20) {
line(i, -i+20, i, i+20);
rotate(PI/2);
stroke(#68CEF5);
point(x, y);
stroke(255);
point(-x, -y);
}
}
I would like to ask you all.
If I want to use 2 colors and then rotate like him, how can I write instructions?
Please greatly guide