Added a function for drawing a grid with a palate of colors, and a sample that uses it.