diff --git a/1 - Blockcode/resources/js/elements.js b/1 - Blockcode/resources/js/elements.js index 6819364..b948ad4 100644 --- a/1 - Blockcode/resources/js/elements.js +++ b/1 - Blockcode/resources/js/elements.js @@ -135,7 +135,7 @@ class CircleElement extends BaseInputScriptElement { constructor() { super(); } action(Painter) { Painter.canvasContext.beginPath(); - Painter.canvasContext.arc(95, 50, 40, 0, 2 * Math.PI); + Painter.canvasContext.arc(Painter.x1, Painter.y1, this.value, 0, 2 * Math.PI); Painter.canvasContext.stroke(); } }