Color by thickness

Hi Everyone,

I want to create a Dynamo script what make a color legend into an existing form by thickness.
Can anyone help me about this task?

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