increase value with slope effect
in
Programming Questions
•
1 year ago
I go the wanted effect a little.
A circle growing fast and over time slower and slower.
I only want to make the effect stronger, so even faster growing in the beginning and slower till the end.
It can probably done easy but i end up with inverse radius or the effect inversed.
- float c = 0;
- void setup() {
- size(400, 400);
- smooth();
- }
- // . . . . . . . . . . . . . . . . . . .
- void draw() {
- background(255);
- float r = sin(c)*300;
- stroke(0);
- ellipse(width/2, height/2, r, r);
- c += 0.01;
- if(c > HALF_PI) c = 0;
- }
- // . . . . . . . . . . . . . . . . . . .
1