Skip to content

Commit

Permalink
#35 quickfix om afbeelding te kunnen tonen
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonVanherweghe committed Jun 9, 2020
1 parent df60e2c commit c812915
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions solutions/026/RobinVandenBerghe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ <h1>
import draw from "./solution.js";
const canvas = document.querySelector("canvas");
const ctx = canvas.getContext("2d");
ctx.scale(3, 3);
draw(ctx);
</script>
</body>
Expand Down
4 changes: 2 additions & 2 deletions solutions/026/RobinVandenBerghe/solution.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const draw = function (ctx) {
ctx.beginPath();
ctx.strokeStyle = "#4fc3f7";
ctx.fillStyle = "#4fc3f7";
ctx.arc(100, 150, 50, 0, 2 * Math.PI);
ctx.arc(200, 150, 50, 0, 2 * Math.PI);
ctx.arc(26, 50, 24, 0, 2 * Math.PI);
ctx.arc(74, 50, 24, 0, 2 * Math.PI);
ctx.closePath();
ctx.stroke();
ctx.fill();
Expand Down

0 comments on commit c812915

Please sign in to comment.