Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
More random fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
irskep committed Nov 17, 2013
1 parent 2016e69 commit 769a991
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions coffee/core/core.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 769a991

Please sign in to comment.