function setup() {
  // 描画領域のセットアップ
  createCanvas(200,200);
  background(0);
  noStroke();
  fill(255);
  
  const size = 5;
  
  //楕円ループ
  for(let x = 50; x <= 150; x += 50) {
    ellipse(x, 50,size,size);
  }
  
  for(let x = 50; x <= 150; x += 50) {
    ellipse(x, 100,size,size);
  }

  for(let x = 50; x <= 150; x += 50) {
    ellipse(x, 150,size,size);
  }
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.min.js