KITASENJU DESIGN BLOG

memo, html, javascript, unity

中央極限定理

function setup() {
  createCanvas(400, 400);
}

function draw() {
  //background(220);
  noStroke();
  
  fill(255,0,0)  
  circle(
    Math.random()*width,
    Math.random()*height,
    10
  )

  fill(0,0,255)  
  circle(
    (Math.random()+Math.random()+Math.random())/3*width,
    (Math.random()+Math.random()+Math.random())/3*height,
    10
  )
  
  
  
}
"FOOTER"