SketchyDynamics is a C++ library that integrates a sketch recognizer, a physics engine, and also provides some simple "graphics library" functionality.