From 28da2a26238ff76f87f4e086a9832a5478c35b23 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Tue, 15 Apr 2014 20:13:49 -0400 Subject: nomenclature --- rectangles.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'rectangles.html') 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() } } } -- cgit v1.2.3-70-g09d2