xxxxxxxxxx
26
function setup() {
createCanvas(200, 200);
frameRate(4); // slowing down how frequently the draw function reloads
background(0);
stars(50);
}
function draw() {
}
function stars(howmany) {
var starX = [], starY = [], starR = [];
for (var i = 0; i < howmany; i++) {
starX.push(random(200));
starY.push(random(200));
starR.push(random(5));
}
for (var s = 0; s < howmany; s++) {
fill(255)
noStroke();
ellipse(starX[s], starY[s], starR[s],starR[s]);
}
}