Rewrite BCPD description of the colour data format#662
Rewrite BCPD description of the colour data format#662quinnyo wants to merge 3 commits intogbdev:masterfrom
Conversation
- less ambiguous description of the colour data format - clarify meaning of endianness (byte order) - reverse the order of the bit table, so MSB appears first, matching others
|
That's actually a pretty good idea! A visual representation of how the encoding is transformed is very helpful. What I would like, actually, is to add a third layer, which shows how the colour is converted into RGB555 format, and then shows the two bytes being swapped in memory. Is the above image available in SVG form? I'd like to tweak it to propose some further improvements. (Perhaps we can add that in a follow-up PR, but still.) |
ISSOtm
left a comment
There was a problem hiding this comment.
Thank you for the wording improvements!
Co-authored-by: Eldred Habert <me@eldred.fr>
Co-authored-by: Eldred Habert <me@eldred.fr>
|
rgb555_encoding(1)(1).drawio |
|
Are these two distinct proposals? Or are they two distinct pictures that are both to be added? For my design, I actually like my "ATA/ATAPI cable" style because it is immediately clear which and how many bits are involved. |
|
I like the cable design as well @nummacway but I couldn't find a way to reproduce it in draw.io (which keeps the diagrams in a 'editable' project XML files so it's a preferred format here) :/ How was your diagram drawn? |
|
Didn't know draw.io was preferred. |
|
This is only the top part of the original file. For those who don't want to open drawio, here's a screenshot: |
One layout idea I had was to separate the format conversion and the RAM encoding into two separate layers, so there'd be three total: the RGB8 colour, the RGB555 version (still with the “ribbon cables”, and then two arrows pointing out how the bytes are swapped in memory order, and also dotted lines going left and right to suggest that there are more memory cells around. |
|
I like the diagram, but it took me a little while to understand where you're coming from. So I don't think I'm really the target audience for the diagram but I can see the value in it because a lot of people would be coming into this more familiar with this flavour of 24-bit colour than any other. It's a good way to illustrate "what RGB555 means" on a technical level. I've got one issue with the diagram itself: the order of the ribbon layers. Could the blue ribbon be on a higher layer than the green one? (blue should occlude green) RGB --> R, G_low, G_high, B @ISSOtm @avivace thanks for the review and patches! |
|
The layer idea was: Small cables over wide cables. |
|
My current iteration of the diagrams can be viewed online at https://eldred.fr/pandocs+662/Palettes.html#lcd-color-palettes-cgb-only; criticism welcome. |
|
"5-bit red" is 16 not 17. |


This is a rewrite of the BCPD section to hopefully reduce possible confusion and make the colour data format less ambiguous.
Particularly:
Fixes #643 (I think)