Ramp_open_rgb - ObjectVision/GeoDMS GitHub Wiki
Rescale functions ramp_open_rgb
- ramp_open_rgb(startvalue, uptovalue, domainunit)
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.
- parameters startvalue and uptovalue with value type uint32 (often configured with the rgb function)
- unit domainunit with value type from group CanBeDomainUnit
7.031
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