fractalkitty looking for math? fractalkitty.com

Mathober 2026 ยท day 13, Standard Map

Standard Map

#random#trig#interactive#animation#accumulates#mathober

theta

let t = 0
let I
let theta
function setup() {
	theSizeThatFits = min(windowWidth, windowHeight)*0.9
	theCanvasThatIsFilled=createCanvas(theSizeThatFits, theSizeThatFits);
	background(20,70,80);
	noStroke();
  fill(255)
	describe("a chaotic system is drawn in teal with lots of distorted ellipses and curves forming around a center in teal tones")
  I = random(0,100)
  K = random(300,1500)
  theta = random(0,360)
  angleMode(DEGREES)
	
}

function draw() {
 
	t+=random(0,1)
  translate(width/2,width/2)
  for(let i = 0;i<2000;i++){
	  fill(200-170*sin(I-theta-t),240-170*sin(I-theta-t),255-170*sin(I-theta-t),100)
    circle(I*cos(theta),I*sin(theta),0.75)
  	I = I+K*sin(theta)
    theta = abs((theta+I+t)%360)
  }
	
		I = random(0,100)
  K = random(100,500)
  theta = random(0,360)
		frameCount=50
	
  
}

function keyPressed(){
	if(keyCode===83){
		save(theCanvasThatIsFilled,"standard","png")
	}
}