xxxxxxxxxx
35
function setup() {
createCanvas(500, 500);
background(250);
noStroke();
// Use HSB color.
colorMode(HSB);
let range=150;
// Fill with pure red.
let h= random(0,60);
let s= random(40,90);
let b= random(95,98);
fill(h, s, b);
circle(250, 250, 100);
for(let i=0; i<100; i++)
{
let h= random(30,60);
let s= random(40,70);
let b= random(95,98);
fill(h, s, b);
circle(250+random(-range,range), 250+random(-range,range), 100);
}
describe('A gray square with a red circle at its center.');
}