summaryrefslogtreecommitdiff
path: root/js/draw.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-26 19:29:30 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-26 19:29:30 +0200
commitaaa6ce7d97f065b1a70719188d436be87d1674c7 (patch)
treeac121ed336832ae721033abf5692b608a492e578 /js/draw.js
parent5f145fb65802844aa22563b67361b939f01d72fe (diff)
parent4b7d6d32ed9e440dc08257148a2c10162a6e90f8 (diff)
Merge branch 'master' of lmno:ascii
Diffstat (limited to 'js/draw.js')
-rw-r--r--js/draw.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/js/draw.js b/js/draw.js
index 407e1c8..9b0e3b9 100644
--- a/js/draw.js
+++ b/js/draw.js
@@ -111,18 +111,18 @@ var draw = (function(){
line(lex, [ xa[1][0], ya[1][0] ], [ xa[1][1], ya[1][1] ], erasing)
}
else {
- var last_point_mod = [], point_mod = []
var x_a = mod( last_point[0], w )
var y_a = mod( last_point[1], h )
var x_b = mod( point[0], w )
var y_b = mod( point[1], h )
+ var last_point_mod = [x_b, y_b], point_mod = [x_a, y_a]
line(lex, last_point_mod, point_mod, erasing)
- if (mirror_x) {
- line(lex, [w-last_point_mod[0], last_point_mod[1]], [w-point_mod[0], point_mod[1]], erasing)
- }
- if (mirror_y) {
- line(lex, [last_point_mod[0], h-last_point_mod[1]], [point_mod[0], h-point_mod[1]], erasing)
- }
+ // if (mirror_x) {
+ // line(lex, [w-last_point_mod[0], last_point_mod[1]], [w-point_mod[0], point_mod[1]], erasing)
+ // }
+ // if (mirror_y) {
+ // line(lex, [last_point_mod[0], h-last_point_mod[1]], [point_mod[0], h-point_mod[1]], erasing)
+ // }
}
last_point[0] = point[0]
last_point[1] = point[1]