• fullscreen
  • Lightest.pde
  • //Romina de Grote
    //Image Sketch with for loop to break the image and blend function with lightest mode
    void setup(){
    size(800,600); 
    
    
    }
    void draw(){
      PImage img1 = loadImage("otoƱo.jpg"); 
      PImage img2 = loadImage("butterfly.png"); 
      int w = width/24;
      int h = height/32;
      
      for (int i=0; i<width; i+=w){ 
      for (int j=0; j<height; j+=h){
        int srcX = int(random(width-w)); 
        int srcY = int(random(height-h)); 
        int srcW = int(random(w));
        int srcH = int(random(h));
        img1.blend(img2, srcX, srcY, srcW, srcH, i, j, w, h, LIGHTEST);
      }
     } 
    image(img1, 0, 0); 
    }
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Romina de Grote

    Lightest

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

    You need to login/register to comment.