{
if (window.p_shape !== undefined) {
window.p_shape.remove();
}
window.p_shape = new P5(
(p) => {
p.setup = () => {
p.createCanvas(640, 640);
p.pixelDensity(1);
};
p.draw = () => {
p.background(p.color(120, 120, 120));
p.strokeWeight(2);
p.stroke(0, 0, 255);
p.line(0, 0, p.width, p.height);
p.circle(200, 200, 60);
p.rect(220, 240, 60, 120);
p.triangle(150, 60, 120, 120, 180, 120);
};
},
document.querySelector("#shape"),
true
);
return "Shapes";
}