Extracting the meaning of the colors will require closer inspection of the code. For instance, if you are looking at the shading for elevation, you can see that on line 78, there are certain values for the elevation ramp:
[0.0, 0.045, 0.1, 0.15, 0.37, 0.54, 1.0]
These correspond to the colors represented from lines 97 to 103. You will need to match those colors up with the elevation ranges.
We are currently making improvements to our Sandcastle user experience. I will add this to our discussion to create better descriptions of Sandcastle examples, which will hopefully help you do the steps above.