What is the simplest (and easiest, although that's subjective) algorithm for drawing solid (as in a single, solid color--no texture mapping) 2D polygons in memory? What is the most efficient method?
I am not interested in using the GPU or any rendering method, as the output of my program will not be to the screen.