Open zhao-xuan opened 2 years ago
In the getG function, I think it's supposed to be 255.0 - (value - 191.0) * 4.0? Currently you have 256.0 - (value - 191.0) * 4.0, which overflows
255.0 - (value - 191.0) * 4.0
256.0 - (value - 191.0) * 4.0
In the getG function, I think it's supposed to be
255.0 - (value - 191.0) * 4.0
? Currently you have256.0 - (value - 191.0) * 4.0
, which overflows