SOURCE

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

function draw(){
  background(0,20);
  noStroke();
  fill(32,178,170);
  t=millis()/1000;
  ellipse(200+60*cos(2*t),200+20*sin(2*t),20,20);
  ellipse(200+60*cos(2*t+PI/2),200+20*sin(2*t+PI/2),20,20);
  ellipse(200+60*cos(2*t+PI),200+20*sin(2*t+PI),20,20);
  ellipse(200+60*cos(2*t+PI/2*3),200+20*sin(2*t+PI/2*3),20,20);
  ellipse(200+80*cos(2*t+PI),200+20*sin(2*t),20,20);
  ellipse(200+80*cos(2*t+PI/2),200+20*sin(2*t+PI/2),20,20);
  ellipse(200+80*cos(2*t+PI),200+20*sin(2*t+PI),20,20);
  ellipse(200+80*cos(2*t+PI/2*3),200+20*sin(2*t+PI/2*3),20,20);
  }
console 命令行工具 X clear

                    
>
console