Optiroc / SuperFamiconv

Flexible and composable tile graphics converter supporting Super Nintendo, Game Boy, Game Boy Color, Game Boy Advance, Mega Drive, PC Engine and WonderSwan formats.
MIT License
154 stars 22 forks source link

SNES color conversion #50

Open H-A-M-G-E-R opened 6 months ago

H-A-M-G-E-R commented 6 months ago

why is it taking a color and dividing each component by 8 and flooring instead of multiplying each component by 31/255 and then rounding?

lintbe commented 5 months ago

I just went to the same conclusion last night while trying to figure out why the colors on my converted image was so far from orginal. After reading the source code, I went to the same conclusion. I will try to make a patch for this.