added the shade(color,dir) function

shades a color lighter or darker depending on the direction dir="d" causes darker, otherwise it lightens it.  Using this for shading charts