diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-12-11 22:03:04 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-12-11 22:03:04 -0500 |
| commit | ad28a48edc1ec1c9182cc455451c3b68a8c2b4bc (patch) | |
| tree | d5e0b89c75e1290e1551e16fcca6a4f45da04dd0 /js/draw.js | |
| parent | 2de4442f9aeb6a4fc5d49fab8a15b41d87ff2fe4 (diff) | |
making a selection and dragging it
Diffstat (limited to 'js/draw.js')
| -rw-r--r-- | js/draw.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -29,7 +29,7 @@ var draw = (function(){ var len = dist(a[0], a[1], b[0], b[1]) var bw = 1 var x, y, i; - for (var i = 0; i < len; i += bw) { + for (var i = 0; i <= len; i += bw) { x = lerp(i / len, a[0], b[0]) y = lerp(i / len, a[1], b[1]) stamp (canvas, brush, x, y, erasing) |
