Slim 2D renderer in C