Move canvas

Untitled Sketch

Saved June 8, 2010
int startAngle =0;
 
void setup() { 
    size(550, 550);
    smooth();
    background(255);
    strokeWeight(0.01);
    frameRate(30);
 
void draw() { 
    fill(255,255,255,100);
    rect(0,0,width,height);
    
    
    translate(width/2,height/2);
    int Scale = 20;//(mouseX/width)*25;
    if(Scale<0.1)
        Scale = 0.1;
    scale(Scale);
    
    stroke(0,0,0,0);
    fill(255,255,255,255);
    ellipse(0,0,15*sin(startAngle),15*sin(startAngle));
    
    for(int MeshCount = 0;MeshCount<10;MeshCount++){
        pushMatrix();
            rotate(radians(sin(startAngle)*180)+radians(MeshCount*35));
            for(int i = 0;i<10;i++){
                int blah = 255*(1-(i/10));
                stroke(blah,0,0);
                line(i,0,i,10);
            }
            for(int i = 0;i<10;i++){
                int blah =  255*(1-(i/10));
                stroke(0,0,blah);
                line(0,i,10,i);
            }
 
            stroke(0,0,0,255);
            line(0,0,10,10);
 
        popMatrix();
        startAngle = (startAngle+0.005);
    }
    
 
 
}
 

Unless specified otherwise in the source code, this work, created by
is licensed under a Creative Commons Attribution-Share Alike 3.0 License.

Creative Commons License

Authors

Modify this version

Export this version

Source code
HTML (w/canvas)