Mathober 2026 ยท day 10, Simple Pole
Simple Pole
let t=0
function setup() {
theSizeThatFits = min(windowWidth, windowHeight)*0.9
theCanvasThatIsFilled=createCanvas(theSizeThatFits, theSizeThatFits);
background(20,70,80);
noFill();
strokeWeight(0.5);
describe("slow rotating row of tangent curves that slowly make concentric, sketch-like teal circles")
}
function draw() {
t+=0.005
translate(width/2,height/2)
rotate(t)
for(let i = -width/2;i<width/2;i+=random(0.01,0.02)){
push()
stroke(100+40*cos(i/500+t),180+40*cos(i/500+t),210+40*cos(i/500+t),50)
let x = i*PI
let y = 10*cos(x)/sin(x)
circle(5*x,y,1)
pop()
}
}
function keyPressed(){
if(keyCode===83){
save(theCanvasThatIsFilled,"Perimeter of Ellipse","png")
}
}