fractalkitty looking for math? fractalkitty.com

early works

blueFlame

#trig#3d#animation


function setup() {
  createCanvas(400, 400,WEBGL);
  angleMode(DEGREES);
  noStroke();
  ambientMaterial(0,180,200);
}

function draw() {
  background(255);
  ambientLight(60, 60, 60);
  pointLight(255, 255, 255, 0, 0, 100); 
  t = (frameCount%360)/60;
  for(i=200;i>0;i--){
    for(j=0;j<9;j++){
      push()
      rotate(j*40);
      translate(cos(t*i*10)*cos(t*i*5)*i,i*3,sin(t*i*10)*cos(t*i*5)*i)
      pop(sphere(i*t/2,3,3))
      push()
    }
  }
  
  
}