Make use of stencil buffer and color in primitives

The rendering algorithm is complete and works. I've also added a color
generator to be able to identify which area was drawn when.