T-Colorings and Chromatic Number of Distance Graphs