Hacker News new | ask | show | jobs
by flat20 5578 days ago
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