• fullscreen
  • Assignment_7b.pde
  • boolean fswitch = false;
         
    void setup() {
      size(800,500);
      noStroke();
      smooth();
      background(#B0E2FF);
      fill (#FFFF00,100);
      ellipse (600,80,150,150);
    }
     
     
    void draw() {
      frameRate(10);
      if(fswitch==false){
        fill(250,60);
        float r = random (60-300);
       ellipse(mouseX,mouseY,r,60);
       
       
      }
      else {
        fill(0,60);
        float r = random (60-300);
       ellipse(mouseX,mouseY,r,60);
      }
    }
    
     
    void mouseMoved() {
      fswitch=false;
    }
     
    void mouseDragged() {
      fswitch=true;
    }
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Ellen Barry

    Assignment_7b

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

    Clouds

    You need to login/register to comment.