submission by jtoy
function setup(){
  var myCanvas = createCanvas(windowWidth,windowHeight); //you must keep this line unmodified
}
function recurse(x,y,r){
  //fill(x,y,r)
  ellipse(x,y,r,r)
  rect(x-r*2,y-r*2,r,r)
  triangle(x+r*2,y+r*2,x+r*2+r,y+r*2+r,x+r*2+r,y+r*2)
  ellipse(x+r,y-r,r,r)
  rect(x-r,y+r,r,r)
  if(r > 0.05) recurse(x,y,r/2)
  
}
function draw() {
  recurse(width/2,height/2,1000)
}