xxxxxxxxxx
30
var spot = {
x: 100,
y: 50
};
var col = {
r: 0,
g: 0,
b: 0
};
function setup() {
createCanvas(400, 400);
background(0);
}
function draw() {
col.r = random(0,255);
col.g = random(0,255);
col.b = random(0,255);
spot.x = random(0, width);
spot.y = random(0, height);
fill(col.r, col.g, col.b,60);
noStroke();
ellipse(spot.x, spot.y, 10, 10);
//
ellipseMode(CENTER);
ellipse(200,200,150,150);
}