Interface to the scale_real_real() and scale_real_int() functions.
Normalize the input real array to the range [0, 1]
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(:) | :: | real_array | ||
| real(kind=wp), | intent(in) | :: | a | |||
| real(kind=wp), | intent(in) | :: | b |
Scale the input real array to the integer RGB range [a, b]
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(:) | :: | real_array | ||
| integer, | intent(in) | :: | a | |||
| integer, | intent(in) | :: | b |