How does PixelDepth works?

I have been trying to play with it, but when i change my distance the color won’t change(since i made it that if it is this far, it would show another color).

I divided the pixeldepth with 20. Why does that not work?