xxxxxxxxxx
35
var point1 ={
x:100,
y:50
}
var col = {
r:255,
g:0,
b:0
}
function setup() {
createCanvas(windowWidth, windowHeight);
background(255);
}
function draw() {
noStroke()
col.r = random(0, 255)
col.g = random(100, 255)
col.b = random(100, 200)
point1.x = random(0, width)
point1.y = random(0, height)
fill(col.r, col.g, col.b, 40);
ellipse(point1.x, point1.y, col.r/2, col.r/2);
}
function keyTyped() {
if (key === "s") {
saveFrames("random dots", "png", 1, 1);
}
}