From 769a9915a91eb1d526c22a9cd451c00a2ce314ec Mon Sep 17 00:00:00 2001 From: Stephen Johnson Date: Sat, 16 Nov 2013 20:28:34 -0800 Subject: [PATCH] More random fixes --- coffee/core/core.coffee | 4 ++-- demo/index.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/coffee/core/core.coffee b/coffee/core/core.coffee index 1f92a3fb..b67f3f1d 100644 --- a/coffee/core/core.coffee +++ b/coffee/core/core.coffee @@ -99,7 +99,7 @@ class LC.LiterallyCanvas @scale = @scale + factor @scale = Math.max(@scale, 0.2) @scale = Math.min(@scale, 4.0) - @scale = Math.round(@scale*100)/100 + @scale = Math.round(@scale * 100) / 100 @position.x = LC.scalePositionScalar( @position.x, @canvas.width, oldScale, @scale) @@ -191,7 +191,7 @@ class LC.LiterallyCanvas p = @drawingCoordsToClientCoords x, y pixel = @ctx.getImageData(p.x, p.y, 1, 1).data if pixel[3] - "rgb(" + pixel[0] + "," + pixel[1] + "," + pixel[2] + ")" + "rgb(#{pixel[0]}, #{pixel[1]}, #{pixel[2]})" else null diff --git a/demo/index.html b/demo/index.html index 52525b22..510ef94f 100644 --- a/demo/index.html +++ b/demo/index.html @@ -46,7 +46,7 @@ var watermarkImage = new Image(); watermarkImage.src = watermarkImageURL; - var backgroundImageURL = 'https://dl.dropboxusercontent.com/u/360865/Photos/boy-lightskin-greenshirt-bluepants-redswoop.png'; + var backgroundImageURL = '/demo/bear.png'; // the only LC-specific thing we have to do $('.literally').literallycanvas({