created the color matrix and tracing for B to D.