xxxxxxxxxx
var counter = 0;
function setup() {
createCanvas(740, 525);
colorMode(HSB, 360,100,100)
}
function draw() {
background(120,100,18);
//rectMode(CENTER);
//translate(0, height / 2);
let gold = map(sin(counter),-1,1,60,80);
//let =;
let num = 5;
for (let y = 0; y < num; y += 1) {
//push();
translate(random(100,600),random(100,400));
//rotate( radians(y*10) );
//noFill();
fill(gold,100,60)
noStroke();
ellipse(0,0, 50, 50);
//pop();
}
}