xxxxxxxxxx
29
var circ = {
x: 250,
y: 250,
diameter: 100
}
var col = {
r: 218,
g: 260,
b: 221
}
function setup() {
createCanvas(windowWidth, windowHeight)
}
function draw() {
background(col.r, col.g, col.b);
fill(250 ,200, 200)
strokeWeight(3)
ellipse(circ.x, circ.y, circ.diameter, circ.diameter)
// making the ellipse move on its own
// 1. declare the variable
// 2. initialize the variable
// 3. use the variable
}