Ramp_open_rgb
rescale-functions ramp_open_rgb
syntax
- ramp_open_rgb(startvalue, uptovalue, domainunit)
definition
ramp_open_rgb(startvalue, uptovalue, domainunit) ramps rgb values, starting with the startvalue argument up to the uptovalue argument.
The uptovalue argument itself is not part of the resulting attribute.
The number of values is defined by the cardinality of the domain-unit argument.
applies to
- parameters startvalue and uptovalue with value-type uint32 (often configured with the rgb function)
- unit domainunit with value type from group CanBeDomainUnit
since version
7.031
example
attribute<uint32> BrushColor (City) := ramp_open_rgb(rgb(255,255,0), rgb(0,255,0), City);
BrushColor |
---|
rgb(255, 255, 0) |
rgb(218, 255, 0) |
rgb(182, 255, 0) |
rgb(145, 255, 0) |
rgb(109, 255, 0) |
rgb( 72, 255, 0) |
rgb( 36, 255, 0) |
domain City, nr of rows = 7