Sketching the Gradient Function

Drag the point (marked with X) to investigate the change in slope along the curve. Why does the tangent line change colour?

Information: Sketching the Gradient Function