I was doing a code test recently where I was asked to write an html 5 gallery. It led me to reach a couple of conclusions:-
- HTML5 video is a lovely idea but from a practical implementation standpoint is stupid and useless because of the ridiculous browser requirements.
- The canvas 2d context API is woefully underpowered.
Today I will be ranting about and playing with the second idea. We’ll start with introducing the CanvasPixelArray. We’ll apply a grey filter to an image, then we’ll move on to writing a simple convolution method.
I’ve been playing with the drawing API for flash for a long time now, but I’ve not really looked into drawing using the HTML5 canvas tag. So i decided to take a gander at the W3C Canvas 2D context spec.
It seems like a bit of a pain to draw over time with canvas, or just doing vector drawing in general.
Here’s the link