diff options
author | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2025-05-28 01:26:58 +0200 |
---|---|---|
committer | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2025-05-28 01:26:58 +0200 |
commit | 31fce5d3a5e6ea1e089d4ad73d6264b2a2991374 (patch) | |
tree | 86dbecccf310a513b6d7d4de8e114646dbc4724e | |
parent | b5dbed4a14e09fb6fdf7204d4240328aca422812 (diff) |
round brush shape
-rw-r--r-- | views/partials/canvas.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/views/partials/canvas.html b/views/partials/canvas.html index 94ef89b..950745d 100644 --- a/views/partials/canvas.html +++ b/views/partials/canvas.html @@ -18,6 +18,8 @@ const canvas = document.getElementById('canvas'); const ctx = canvas.getContext('2d'); ctx.getImageData(0, 0, 1, 1); // to trigger librewolf's protection (and allow users to enable canvas before publishing) + ctx.lineCap = "round"; + ctx.lineJoin = "round"; //ctx.fillStyle = "black"; let isDrawing = false; |