added shade function to paint shapes in color