• fullscreen
  • interm2.pde
  • void setup() {
      size(250,250);
      background(0);
        smooth();
        noFill();
    }
     
    void draw() {
      if (mousePressed)// on mouse actions
      {
        float n = dist(width/2,height/2,mouseX,mouseY);//set of float prop.
        ellipse(mouseX, mouseY, n/2, n/2);//mouse hovers
        ellipse(250-mouseX, mouseY, n/2, n/2);
        ellipse(mouseX, 250-mouseY, n/2, n/2);
        ellipse(250-mouseX, 250-mouseY, n/2, n/2);
        
        if((mouseX<125)&(mouseY<125))
       
        {
          stroke(random(65), random(170), 150, 50);//colours
        }
      }
      
    }
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Novia

    nbui_interactivity_mouse2

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

    You need to login/register to comment.