ST最終課題?
var A=-50
var B=750
var C=-50
var D=750
var E=-50
var F=750
var G=-50
var H=3
var i=100
var J=random(0,255)
function setup(){createCanvas(700,700);
background(255);}
function draw(){
A=A+i
ellipse(A,50,100);
fill(0,0,235);
frameRate(H);
if(A>700)
A=-100
ellipse(50,A,100);
fill(0,0,235);
frameRate(H);
if(A>700)
A=-100
B=B-i
ellipse(B,150,100);
fill(255,255,0);
frameRate(H);
if(B<0)
B=800
ellipse(150,B,100);
fill(255,255,0);
frameRate(H);
if(B<0)
B=800
C=C+i
ellipse(C,250,100);
fill(0,0,235);
frameRate(H);
if(C>700)
C=-100
ellipse(250,C,100);
fill(0,0,235);
frameRate(H);
if(C>700)
C=-100
D=D-i
ellipse(D,350,100);
fill(255,255,0);
frameRate(H);
if(D<0)
D=800
ellipse(350,D,100);
fill(255,255,0);
frameRate(H);
if(D<0)
D=800
E=E+i
ellipse(E,450,100);
fill(0,0,235);
frameRate(H);
if(E>700)
E=-100
ellipse(450,E,100);
fill(0,0,235);
frameRate(H);
if(E>700)
E=-100
F=F-i
ellipse(F,550,100);
fill(255,255,0);
frameRate(H);
if(F<0)
F=800
ellipse(550,F,100);
fill(255,255,0);
frameRate(H);
if(F<0)
F=800
G=G+i
ellipse(G,650,100);
fill(0,0,235);
frameRate(H);
if(G>700)
G=-100
ellipse(650,G,100);
fill(255,255,0);
frameRate(H);
if(G>700)
G=-100
}