• fullscreen
  • toledo.pde
  • import processing.pdf.*; 
     
    PImage ritoque; 
     
    int col; 
    float r,g,b,bright; 
     
    void setup() { 
      size(604,453); 
       
     ritoque=loadImage("ritoque.jpg"); 
       
      noLoop(); 
      smooth(); 
    
      background(0); 
    } 
     
    void draw() { 
       
      stroke(255); 
      for(int i=0; i<60; i++) { 
        for(int j=0; j<60; j++) { 
          col=ritoque.get(i*10,j*10); 
          r=red(col); 
          g=green(col); 
          b=blue(col); 
          bright=(brightness(col)/255)*8; 
           
          fill(r,g,b); 
          strokeWeight(bright/2); 
          line(i*10,j*10+10, i*10+10,j*10); 
          
          
        } 
      } 
      saveFrame(); 
     
     
    }
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Report Sketch

    Report for inappropriate content

    Please provide details if possible:

    Your have successfully reported the sketch. Thank you very much for helping to keep OpenProcessing clean and tidy :)

    Make a Copyright Infringement claim

    Manuel Toledo Cofré

    Ritoque en un trazo (tarea 3)

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

    Entre las dunas y la playa se asoman los àrboles en un trazo.

    Herbert Spencer
    21 Jul 2009
    simple y elegante. Buena abstracción.
    ¿podrá ser que cada línea es un polígono único?
    John Doe
    14 Aug 2009
    Scriptographer, anyone?
    You need to login/register to comment.