summaryrefslogtreecommitdiff
path: root/js/draw.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/draw.js')
-rw-r--r--js/draw.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/draw.js b/js/draw.js
index 4de9980..f12fbe9 100644
--- a/js/draw.js
+++ b/js/draw.js
@@ -16,6 +16,11 @@ var draw = (function(){
last_point[1] = point[1]
}
+ function set_last_point (e, point) {
+ last_point[0] = point[0]
+ last_point[1] = point[1]
+ }
+
function move (e, lex, point) {
line(lex, last_point, point, erasing)
last_point[0] = point[0]
@@ -97,6 +102,7 @@ var draw = (function(){
var draw = {}
draw.down = down
+ draw.set_last_point = set_last_point
draw.move = move
draw.stamp = stamp
draw.line = line