DESCRIPTION
This component allows for the parametric definition and evaluation of a color gradient. Using a list of colors as an input a gradient will be created from the sequential pattern. Optional corresponding percent values can be used to specify the unitized location of each color along the gradient sequence. A unitized value can then be sampled from the gradient returning the color at the specified location. Additionally, the gradient can be toggled between a linear or a smoothed (cosine based) gradation between provided colors.
INPUTS / OUTPUTS
INPUT Double Item V The unitized (0-1) percent value from which the gradient will be sampled
INPUT Color List C A sequential list of colors defining the gradient pattern
INPUT Double List T An optional list of unitized percent values which represent the placement on the gradient of each matching color. The number of values must match the number of colors, else the colors will be evenly distributed
INPUT Boolean Item L If true the gradient will be interpolated using a linear gradation, else colors will be interpolated using a cosine equation
OUTPUT Color Item A The color at the given sample value
DOWNLOADS
gha | Download User Objects
gh | Download Grasshopper Sample Files
MINIMUM REQUIREMENTS
Platform | Rhino 5, Grasshopper
Version | Grasshopper 0.9.0075
Type | Visual Basic Component