spiral, equal distance between points
in
Programming Questions
•
1 year ago
In the code below the distance between the previous point and the next gets smaller and smaller when the radius get's smaller.
I'm interested in keeping a equal distance between those, so if the radius get's smaller less points will be drawn.
If there is more then one way then i'm interested in the other ways as well, it's the start of a quite complex project and the complex method might make things easier at the long run.
could someone help?
- float r;
- void setup() {
- size(600, 600);
- r= width/2.2;
- smooth();
- }
- void draw() {
- background(255);
- translate(width/2, height/2);
- fill(0);
- while(r > 0) {
- ellipse(r--, 0, 5, 5);
- rotate(radians(10));
- }
- noLoop();
- }
1