A lightweight 2D graphics engine