Tapering Spiral
              in 
             Programming Questions 
              •  
              19 days ago    
            
 
           
             Hi,
            
             
            
            
             
            
            
             
            
            
              
           
 
            
           
             Can someone help me with this?
            
            
             I am trying to create a tapering spiral.
            
            
             The eventual goal is to make something like this:
            
            
            
             So the first challenge I need to solve is to get a smooth tapering spiral. 
            
            
             I have got something like this. But the problem is, since I am using ellipse, the dots become visible at the end of the tail.
            
            
             Is it possible to create something like this with bezier tool?
            
            
             This is what I have right now:
            
            - float r = 0;
- float theta = 0;
- float eStart = 8;
- void setup() {
- size(600,600);
- background(255);
- smooth();
- }
- void draw() {
- spiral();
- noLoop();
- }
- void spiral(){
- for(int i=0; i<400; i++){
- float x = r*cos(theta);
- float y = r*sin(theta);
- noStroke();
- fill(0);
- ellipse(x+width/2, y+height/2, eStart, eStart);
- eStart -=0.02;
- theta += 0.01;
- r += 0.5;
- }
- }
 
              
              1  
            
 
            
 
 
           
 
            