The 2D robot was rendered from scratch using matrix transformations in 2D and then drawing the shapes using the draw functions.