• fullscreen
  • sketchy_sketch_2.pde
  • int x = 0;
    PImage mond;
    
    void setup() {
      size(1000,700);
      background(255);
      mond= loadImage("diamond.jpg");
    }
    
    void draw() {
      image(mond, x, 30);
      x = x+5;
      if(x>1000) {
        x=0;
    }
    fill(146,223,227);
    
      image( mond, x, 400);
      x = x+5;
      if(x>1000) {
        x=0;
    }
    
    
    fill(101,136,168);
    delay(100);
    }
    
    void mousePressed(){
      fill(177,223,243);
      image(mond, (random(0,1000)), (random(0,700)));
    }
    
    void keyPressed(){
      fill(67,81,104);
      ellipse(random(0,400),random(0,400),random(0,400), random(0,400));
      
    }
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    rosa glenn

    rosa

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

    You need to login/register to comment.