Closed ensonic closed 7 years ago
Change the struct members to be floats to avoid truncating e.g v to 0. We scale r,g,b by COLOR_SATURATION and this maps them to a [0.0, 1.0] range. Setting the max of them to v, will most likely truncate this to 0.
Thanks!
Change the struct members to be floats to avoid truncating e.g v to 0. We scale r,g,b by COLOR_SATURATION and this maps them to a [0.0, 1.0] range. Setting the max of them to v, will most likely truncate this to 0.