News for hackers. Stuff that matters.

flat20

Re:JQuery noise generator on Monday March 07, 2011 @04:42AM (#2296610)
I moved this line out of the for loop which made it slightly faster:

var numPixels = options.intensity * Math.pow(options.size, 2);

http://jsperf.com/noisy/2