SketchBook

円を用いた虹 背景黒基調ランダム (変数、算数、図形、色) 

var circle;
var large;
var color;
var wb;

function setup() {
createCanvas(300, 300);
wb = 300,300,300
 background(wb);
  color= random(50,200)
}

function draw() {
circle = frameCount*10/9
large = 35
 noStroke();
fill(225,0,0,color);
 ellipse(circle+250,circle-15, large);
fill(225,0,225,color);
ellipse(circle-250,circle+15, large);
fill(225,112,0,color);
ellipse(circle+200,circle-12, large);
fill(112,0,225,color);
ellipse(circle-200,circle+12, large);
fill(225,225,0,color);
ellipse(circle+150,circle-9, large);
fill(0,0,225,color);
ellipse(circle-150,circle+9, large);
fill(112,225,0,color);
ellipse(circle+100,circle-6, large);
fill(0,112,225,color);
ellipse(circle-100,circle+6, large);
fill(0,225,0,color);
ellipse(circle+50,circle-3, large);
fill(0,225,225,color);
ellipse(circle-50,circle+3, large);
fill(0,225,112,color);
ellipse(circle,circle, large);
}