projects
/
confetti
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
957f0ce
)
except white erazer lines from autoclose
author
paul
<paul@plutz.net>
Fri, 1 Jul 2016 15:20:18 +0000
(15:20 +0000)
committer
paul
<paul@plutz.net>
Fri, 1 Jul 2016 15:20:18 +0000
(15:20 +0000)
svn path=/trunk/; revision=119
templates/therapy.html.sh
patch
|
blob
|
history
diff --git
a/templates/therapy.html.sh
b/templates/therapy.html.sh
index
63216ad
..
70d9c3f
100755
(executable)
--- 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()