Corrolation between Distance and RGB value