SVG rotate problem
              in 
             Programming Questions 
              •  
              3 months ago    
            
 
           
             Hi all,
            
              
            
            
             
            
             
            
            
             
             
           
 
            
           
             I can't get a handle on why this my rotations are all over the place. I think this code should really 
             work:
              
            
            
             s = loadShape("svg/Worms/ian-symbol-lumbricus-spp-1.svg");
            
            
             ....
            
            
              pushMatrix();
             
             
                 translate(-s.width/2,-s.height/2);
             
             
                  rotate(PI*random(2));
             
             
                  shape (s);
             
             
                 popMatrix();   
             
            
             The shape is in the top lefthand corner before rotation -  but after the rotation its all over the place, What have I misunderstood?
            
             
              
              1  
            
 
            