Post subject: Random question about programming colors
Site Admin, Skilled player (1236)
Joined: 4/17/2010
Posts: 11274
Location: RU
There's a code in desmume to create a PNG file. http://higgs.rghost.ru/6QQf4BfLt/image.png The way variables are called, it's trying to convince me it writes pixels to file in order BGR, while front buffer sent to monitor (32bpp RGB8888, right MemWatch) kind of matches buffer that contains PNG pixels (24bpp RGB888, LeftMemWatch), and both of them match this picture http://higgs.rghost.ru/82NMKWSDh/image.png when read as RGB. The code calls it so like red and green have some values, and blue doesn't, even though it's a blue sky. Am I missing something, or the color order is messed up as far as variables go? EDIT: there's also internal screen (16bpp RGB555) for that frame, where it reads bits from and converts them for PNG, which contains something that actually does look like BGR. http://tau.rghost.ru/7x6dkmZWf/image.png
Warning: When making decisions, I try to collect as much data as possible before actually deciding. I try to abstract away and see the principles behind real world events and people's opinions. I try to generalize them and turn into something clear and reusable. I hate depending on unpredictable and having to make lottery guesses. Any problem can be solved by systems thinking and acting.
Spikestuff
They/Them
Editor, Publisher, Expert player (2305)
Joined: 10/12/2011
Posts: 6341
Location: The land down under.
That looks correct. Edit: feos has been editing what he has written so now my point sounds retarded. Still keeping it here though.
WebNations/Sabih wrote:
+fsvgm777 never censoring anything.
Disables Comments and Ratings for the YouTube account. Something better for yourself and also others.