I think Chris's tools have moved on from those old posts...
His ColorBySlope tool colors facets according to their 'angle'.
In his Plugins subfolder's ..._data.rb near the end you can see how the faces are processed and their angle is calculated as 'segment' [as an integer].
The array of materials [matarray] is inspected and the material number corresponding to the 'segment' is assigned to the facet...
If you setup 90 colors then for each degree of slope you get a correspondingly colored material on the face...
With just 9 colors you get a 10 degree range of slope between flat and vertical.
So for example - set 'low' to green [0,255,0] and high to 'red' [255,0,0]
Then the steeper the slope the redder it gets ?
The flatter the slope the greener it gets ??
Not all colors will get used - r.g. if the majority are quite flat it's predominantly greens as there are no steep red parts !
Capture.PNG
Capture1.PNG
Capture2.PNG