simple but yet hard thing to animate
in
Programming Questions
•
2 years ago
I want to make the thing that you can see in the video at 1.55.
http://vimeo.com/19235073
I would like to start with 1 circle aswell, but after that keep looping forever.
http://vimeo.com/19235073
I would like to start with 1 circle aswell, but after that keep looping forever.
- void setup(){
size(512, 512);
smooth();
ellipseMode(CENTER);
noFill();
stroke(255);
strokeWeight(20);
count = int((width/2) / 40);
println(count);
}
int count;
int steps = 50; // amount of frames it takes
void draw(){
background(0);
translate(width/2, height/2);
float n = norm(frameCount%steps, 0, steps-1); // it doesn't have to be normalized but it chunks it a bit more up and i like normalized values
for(int i = 0; i < count; i++){
float r = map(n, 0, 1, 0, width*1.44); // radius
ellipse(0, 0, r, r);
}
}
1