Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
flat20
on March 7, 2011
|
parent
|
context
|
favorite
| on:
JQuery noise generator
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
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
var numPixels = options.intensity * Math.pow(options.size, 2);
http://jsperf.com/noisy/2