diff options
| author | Julie Lala <jules@okfoc.us> | 2014-04-15 20:13:49 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-04-15 20:13:49 -0400 |
| commit | 28da2a26238ff76f87f4e086a9832a5478c35b23 (patch) | |
| tree | 39cfb3f33fb5100234397baecb9037c26daa7fe3 /rectangles.html | |
| parent | 2fdd2f4ee268b8d159e57a91bb0dbf977f6fecef (diff) | |
nomenclature
Diffstat (limited to 'rectangles.html')
| -rw-r--r-- | rectangles.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rectangles.html b/rectangles.html index 71f83c6..32790d7 100644 --- a/rectangles.html +++ b/rectangles.html @@ -131,11 +131,11 @@ canvas.addEventListener("mousemove", function(e){ document.addEventListener("mouseup", function(e){ if (creating) { if (mouse.height() != 0 && mouse.width() != 0) { - rects.push(mouse.normalize()) + rects.push(mouse.translate()) } } if (dragging) { - dragging.normalize() + dragging.translate() } mouse = new rect(e.pageX, e.pageY) creating = dragging = false @@ -258,7 +258,7 @@ function draw_mouse(){ } else { ctx.fillStyle = "rgba(255,255,0,0.5)" - mouse.clone().normalize().fill() + mouse.clone().translate().fill() } } } |
