Here’s another web app that demonstrates how HTML5 and the Light can work in concert to do something that previously would have required a dedicated platform app. The Photo Sampler uses the HTML5 Canvas 2D and File interfaces to allow the user to pick a photograph (or take a photograph) from the device – which could be a computer, tablet, or smartphone. It then puts that image onto the canvas, and where the user touches the image, the color at the touch point is sent to the Light using REST.
Although it’s still a wee bit buggy on iOS (which seems to take great liberties with EXIF data), it works quite well.
Here’s a link to the source. It’s a mix of HTML5 and Javascript. Enjoy!