Better HN
topnewbestaskshowjobs
Log inSign up

flat20

1 karma · joined Jun 11, 2010 (16y ago) · 1 submissions

Submissions

comment 15y ago · link · parent

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