R/valueRangeExpression.R
vreScale2Colours.RdvreScale2Colours takes a value from a range and
scales it proportionally into a colour from a colour gradient.
vreScale2Colours(clr1, clr2, vMin, vMax, value)
| clr1 | The colour representing the lower value of the target range. |
|---|---|
| clr2 | The colour representing the upper value of the target range. |
| vMin | The lower value of the source range. |
| vMax | The upper value of the source range. |
| value | The source value to rescale into the target range. |
The value scaled into the target colour gradient.