diff options
| author | Jules <jules@asdf.us> | 2018-04-06 09:54:36 -0400 |
|---|---|---|
| committer | Jules <jules@asdf.us> | 2018-04-06 09:54:36 -0400 |
| commit | cbb7c093e5f5f64d5e8b29da84cf470d6eb95024 (patch) | |
| tree | b54c0e99dcce8a6f2a54e1fccccb543c91c16444 /js | |
| parent | b0ada80bc3a7882ac50c16188004e34061af5845 (diff) | |
fix nopaint
Diffstat (limited to 'js')
| -rw-r--r-- | js/draw.js | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -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] |
