X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=therapies%2Ftherapy_draw.js;h=19542c8e2cca88cb5a91d0f582abec1d2076f5ca;hb=0aa4aa6d57b76d6ca32eb502e422b5f02bed3402;hp=604c000de3810e01f8d10d41dcdefdfb1b791eda;hpb=6d2d03223a03794d2cef013b2b204b1a4eb983a0;p=lobster diff --git a/therapies/therapy_draw.js b/therapies/therapy_draw.js index 604c000..19542c8 100644 --- a/therapies/therapy_draw.js +++ b/therapies/therapy_draw.js @@ -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