TypeScript version of jsrasterizer, a simple triangle rasterizer.