I've used two 2d game frameworks (SpriteKit and Corona SDK) and have not found a way to programmatically create low res 2d shapes. They seem to be more centered on using sprites or image files.
For an example look at eliss infinity https://www.youtube.com/watch?v=VuKGJyJZY7s
How is something like this done?