color depending on lon/lat position?

Hi how can you code it so that the color of an object changes depending on the distance from a lon/lat position?

Thanks Buddy1397