xxxxxxxxxx
24
let c = {
x:100,
y:200,
radius: 50,
draw: function() {
circle(this.x,this.y,this.radius);
}
};
let c2 = c;
function setup() {
createCanvas(400, 400);
c = 2;
console.log(c2);
}
function draw() {
background(220);
c2.draw();
}