Playing with the OpenWeb - What I've learnt
- If you want to compare colors, you may want to work in the Hue space (pure colors) : http://en.wikipedia.org/wiki/Hue
- If you know the pixels representing an object, and want to know its position, compute its centroid: http://en.wikipedia.org/wiki/Centroid
- Reduce the number of HTTP requests: for your videos, provide the X-Content-Duration header: https://trac.annodex.net/wiki/HttpHeaders
- In a recursions, not tracing, so if you can (you always can) derecursify your functions.
- JS objects sent to a Worker via postMessage are JSONified. Be careful with big arrays.
- You can't use Javascript 1.7/1.8 in a Worker