]> git.plutz.net Git - lobster/blobdiff - therapies/therapy_draw.js
Merge commit '647d09a619f8da6da043f56a64781a69a92265e2' into cgilite
[lobster] / therapies / therapy_draw.js
index 9710564ce46803335a11855a437e5d3c911b777d..19542c8e2cca88cb5a91d0f582abec1d2076f5ca 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2016 Paul Hänsch
+// Copyright 2016, 2020 Paul Hänsch
 //
 // This file is part of Confetti.
 // 
 body = document.body
 dbg = document.getElementById("jsdebug")
 canvas = document.getElementById("canvas")
-data=document.getElementById("image_serialize")
+data = document.getElementById("image_serialize")
 
 image = canvas.getContext("2d")
 mouse = 0
 image_serialize=""
+image.lineJoin = "round"
+image.lineCap = "round"
+data.value += " stroke-linejoin round "
+data.value += " stroke-linecap round "
 
 // start and current coordinates of a draw
 // serves for tracking, whether path ends close to its beginning