This example shows how to use ``NSGradient``.