Javascript test of drawing using phone/mac accelerometer