Ricardbt_generative/atractor1/atractor1.pde
float a,b,c,d,n,x,y, yn,xn,z;



void setup(){
  //a = -1.7, b = 1.8, c = -1.9, d = -0.4 
a = 0.970;
b = -1.899;
c = 1.381;
d = -1.506;
/*a = -1.7;
b = 1.8;
c = 1.9;
d = -0.4;*/

z=1;
xn=500;
yn=300;
size(800,800,P3D);
background(255);
noFill();
}
void draw(){
      translate(width/2,height/2);
    
    x= (sin(a * yn) + c * cos(a * xn))*120;
    y= (sin(b * xn) + d * cos(b * yn))*120;
    z+=0.3;
   ellipse(x,y,1,1);
   //rotateY(radians(z));
 stroke(x,y,z);
 beginShape();
  for(float t = 0; t <=120; t +=5){
  //vertex(x,y);
   vertex(x+t,y+t);
    background(255);
    for(float s = 0; s <=120; s +=3){
         
         
          vertex(s,t);
    
 }
     
 }
  endShape();
 
 
    xn+=0.01;
    yn+=0.01;
}