• fullscreen
  • artegenerativo10.pde
  • /*por Eduardo H Obieta
    hackpact de arte generativo
    www.artegenerativo.laad.com.mx
    */
    int ca = 5;
    float[] vari, rx, ry, rz, distx, multix, multiy, multiz;
    
    
    void setup() {
      size(800, 400, P3D);
      background(255);
      smooth();
      distx= new float[ca];
      vari= new float[ca];
      rx= new float[ca];
      ry= new float[ca];
      rz= new float[ca];
      multix= new float[ca];
      multiy= new float[ca];
      multiz= new float[ca];
    
      for (int i=0; i<ca; i++) {
        rx[i]=random(-180, 180);
        ry[i]=random(-180, 180);
        rz[i]=random(-180, 180);
        distx[i]=random(450, 600);
        multix[i]=random(0.0001, 0.0006);
        multiy[i]=random(0.0001, 0.0006);
        multiz[i]=random(0.0001, 0.0006);
      }
    }
    
    
    void draw() {
    
      translate(width/2, height/2);
      for (int i=0; i<ca ;i++) {
    
        vari[i]=150+noise(distx[i])*30;
        rotateX(rx[i]+millis()*multix[i]);
        rotateY(ry[i]+millis()*multiy[i]);
        rotateZ(rz[i]+millis()*multiz[i]);
        stroke(121, 87, 9);
        strokeWeight(1);
        point(vari[i], 0);
    
        strokeWeight(0.1);
        stroke(121, 87, 9, 20);
        line(vari[i], 0, 100, 0);
        distx[i]+=0.1;
      }
    }
    
    

    code

    tweaks (0)

    about this sketch

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

    license

    advertisement

    Eduardo Obieta

    Arte Generativo. Hackpact Dia 10

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

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

    Geo Meadows
    13 Nov 2011
    Muy bonito!
    Y tu sitio es maravilloso.
    Eduardo Obieta
    13 Nov 2011
    :) Muchas Gracias Geo
    You need to login/register to comment.