• fullscreen
  • mousePressed_color_machine.pde
  • void setup() {
      
    size(600,400);
    background(180,180,180);
    
      strokeWeight(2);
      frameRate(10);
    }
    
    void draw() {
      
    if(mousePressed == true) {
      fill(random(250),random(250),random(250));
      rect(50,50,500,200);
      
    }
    }
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    David Montoya

    mousePressed color machine

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

    mousePressed random color machine UACR Up-a-Creek Robotics

    You need to login/register to comment.