Color gradient equal to surface degrees

There are a few discussions on various methods for doing slope analysis. Here is one that has a few different flavors, (C#, Python, Native components).