1 | initial version |
Two ways to solve your problem:
-minval
corresponds to 0
. For example, you could scale it such that -255
is zero. In that case, your red which is -28
will show up as 227
. You can adjust the code semantics to handle the rest.