• fullscreen
  • imagecover.pde
  • PImage imagen; 
    void setup () { 
      imagen= loadImage("lhooq.jpg"); 
      size(450, 650, P2D); 
      noFill();
      background(0); 
    } 
     
    void draw(){ 
      float diag = dist(0,0,width,height);
      for(int i=0; i<5000; i++){
      int n = int(random(imagen.width)); 
      int m = int(random(imagen.height)); 
      float mp = map(dist(mouseX,mouseY,n,m),0,diag,1,60);
      color pix = imagen.get(n, m); 
      stroke(pix,30); 
      strokeWeight(mp); 
      point(n,m);
      }
     }
    
    //void keyPressed() { 
    //  save("cover" + key + ".png");
    //}
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Caitlin Morris

    Focus

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

    [from 2009] Move the cursor position to define a focus location; hover for a moment for clarity. Base image is "LHOOQ" by Marcel Duchamp.

    You need to login/register to comment.