Fixed bug in primitive drawing. Was using wrong type of color.