Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue #22

Silly bug. Stemmed from only having tested multiples of 100 for the size option.
  • Loading branch information...
commit d60e98957c9418e13a85d8045a2ac86c726631cc 1 parent d0014a5
@DanielRapp authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  jquery/jquery.noisy.js
View
2  jquery/jquery.noisy.js
@@ -27,7 +27,7 @@
var ctx = canvas.getContext('2d'),
imgData = ctx.createImageData(canvas.width, canvas.height),
- numPixels = options.intensity * Math.pow(options.size, 2),
+ numPixels = Math.round( options.intensity * Math.pow(options.size, 2) ),
maxAlpha = 255 * options.opacity;
// Add color to random pixels in the canvas
Please sign in to comment.
Something went wrong with that request. Please try again.