X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Ftherapy.html.sh;h=70d9c3fe704139cf2c19388e0a205364a634dacf;hp=63216ad703ced7ce40ca7120f70d4362e2932c3a;hb=31e822c91021f8848238337a67fcf364f9135aad;hpb=957f0ced0095d421006a0dbc68ef9be8a4325514 diff --git a/templates/therapy.html.sh b/templates/therapy.html.sh index 63216ad..70d9c3f 100755 --- a/templates/therapy.html.sh +++ b/templates/therapy.html.sh @@ -266,7 +266,7 @@ function drawstart(x, y) { function drawstop() { // if path ends close to beginning ( < 50 px); then close path and fill - if ( mouse == 1 && Math.sqrt( Math.pow(stx - cux, 2) + Math.pow(sty - cuy, 2)) <= 50 ){ + if ( mouse == 1 && Math.sqrt( Math.pow(stx - cux, 2) + Math.pow(sty - cuy, 2)) <= 50 && c !== "#FFF" ){ image.lineTo( stx, sty ) image.stroke()