Color by thickness

Hello, this topic has already been discussed. Please use the search field first. Once you have a first attempt done and get stuck, do not hesitate to come back here with a screenshot and the description of your specific issue.
For a start, see here:

See also: http://dynamoprimer.com/en/04_The-Building-Blocks-of-Programs/4-5_color.html