• fullscreen
  • artegenerativo05.pde
  • float posi=0;
    float dista=0;
    float col=0;
    int sw=1;
    
    void setup() {
      size(800, 400);
      background(255);
      smooth();
    }
    
    void draw() {
      noStroke();
      fill(0, 5);
    
      stroke(50);
      strokeWeight(0.1);
    
      float alt1=noise(dista)*450;
    
      translate(posi, 0);
      float pox = alt1;
    
      line(0, 0, 0, height);
    
      noStroke();
    
      fill(col, 50);
      float lado = 5;
      translate(0, pox);
      rect(-lado/2, -lado/2, lado, lado);
    
      if (posi > width) {
        posi=0;
        col=random(200);
      }
      posi+=5;
      dista+=alt1;
    }
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Eduardo Obieta

    Arte Generativo. Hackpact Dia 05

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

    hackpact. Generative Art. Day 05. More info about this hackpact http://artegenerativo.laad.com.mx

    You need to login/register to comment.