X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=therapies%2Ftherapy_draw.js;h=19542c8e2cca88cb5a91d0f582abec1d2076f5ca;hb=b9f386037364d4a10931c37acb464f0bf6d0e5d3;hp=9710564ce46803335a11855a437e5d3c911b777d;hpb=9b8d144589361d2853e8fca704cd06b07d31b563;p=lobster diff --git a/therapies/therapy_draw.js b/therapies/therapy_draw.js index 9710564..19542c8 100644 --- a/therapies/therapy_draw.js +++ b/therapies/therapy_draw.js @@ -1,4 +1,4 @@ -// Copyright 2016 Paul Hänsch +// Copyright 2016, 2020 Paul Hänsch // // This file is part of Confetti. // @@ -18,11 +18,15 @@ 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