← Tiny Subversions

A very simple whiteboard for a Chrome Pixel

by Darius Kazemi, Oct 8, 2015

Code here, and demo here, requires a multitouch device and is only guaranteed to really work with a Chrome Pixel.

I like to stream myself live coding from my Chrome Pixel. When I do this, I sometimes like to tab over to a whiteboard app and draw out an explanation for what I'm coding.

I originally used one of various online whiteboard apps out there, but I found myself unsatisfied with the. Many were too complex, had lots of menus cluttering the screen, and more importantly they were slowed down by their cumbersome UI. All I wanted was something that would let me have a couple sizes of pen to draw with and a quick way to switch to an eraser, save, load, and clear the screen.

So I found this multitouch HTML Canvas drawing demo by Tim Branyen, Paul Irish, Mike Taylor, and Boris Smus. I modified it to do a few different behaviors on different numbers of multitouch:

That's it. I've only tested this on the Chrome Pixel's touch screen, and it's tuned for that specific device. It's a little janky and I don't really care: it's good enough for what I need. I've also tried it on an iPad and it kind of works but is janky and doesn't detect 3+ touches.