xxxxxxxxxx
23
let c = {
x:100,
y:200,
radius: 50,
draw: function() {
circle(this.x,this.y,this.radius);
}
};
function setup() {
createCanvas(400, 400);
c.color = "#ff0000";
c.color = undefined;
console.log(c);
}
function draw() {
background(220);
c.draw();
}