fractalkitty looking for math? fractalkitty.com

early works

nautilusDream

#interactive#animation#accumulates#math#spiral

let n=35;
let s=1;
function setup() {
	createCanvas(windowWidth, windowHeight);
	background(255);
	angleMode(DEGREES);
	noStroke();
}
function draw() {
	t=frameCount/60;
	translate(width/2,height/2)
	for(let i=0;i<n;i++){
		for(let j=0;j<n;j++){
			push()
			rotate(s*t*i+t*j)
			fill(i*j*0.9/2+10,i*j/2+10,i*j*1.3/2+10,20)
			ellipse(-width/2+i*width/n,-height/2+j*height/n,width/n*5,height/n*5);
			fill(255,255,255,100)
			ellipse(-width/2+i*width/n,-height/2+j*height/n,width/n/3,height/n/3);
			pop()
		}
	}
}

function mousePressed(){
  s=s*(-1)
}