• fullscreen
  • Challenge_33.pde
  • float r = 0;
    
    void setup()
    {
     size(400,400);
     fill(0,0,255);
     rectMode(CENTER);
     noStroke();
     smooth();
     colorMode(HSB);
    }
    
    void draw()
    {
      fill(map(mouseX,0,360,0,180)+10,255,255,20);
      rect(width/2,height/2,width, height);
      
      translate(mouseX,mouseY+35);
      rotate(r);
      fill(255);
      rect(0,0,50,50);
      
      r = r+0.05;
    }
    

    code

    tweaks (0)

    about this sketch

    This sketch is running as Java applet, exported from Processing.

    license

    advertisement

    Andy Brent

    Challenge_33

    Add to Faves Me Likey@!
    You must login/register to add this sketch to your favorites.

    Yeah

    You need to login/register to comment.