Im trying to create a gradient along a path that will follow the contour of the path exactly
my path can travel left right up and down.
my gradient lets say is black to white.

I would like the beginning to the end to be black to white and shades of gray inbetween.

I can't seem to accomplish this