Add some color utility functions.
Finish the normal curvature computation.