diff --git a/task3.html b/task3.html index 937fb13f97a317c238f6d0a8cb9d6a2a68c5dba1..46785b61c8275c4f78854b18b6b361bf9e7f0213 100644 --- a/task3.html +++ b/task3.html @@ -20,13 +20,11 @@ ctx.lineTo(x2,y1); <!--ctx.lineTo(x2,y2);--> ctx.moveTo(x2,y2); ctx.lineTo(x1,y2); -ctx.moveTo(x1,y2); ctx.lineTo(x1,y1); <!--penta--> -ctx.moveTo(150,60); -ctx.lineTo(x2,y2); ctx.moveTo(x2,y1); ctx.lineTo(150,60); +ctx.lineTo(x2,y2); function Shape(x, y, w, h, fill) { // This is a very simple and unsafe constructor.