Piglet
05-30-2008, 03:39 AM
I want to use sub-pixel enhancements for text on the GBA/DS. Can the colour order be confirmed. For people who don't know the trick, the LSD makes a pixel using 3 columns thus:
RGB
RGB
RGB
This (assuming 31 for all 3 colours) then you get a white pixel. Now, look at this
-GBR
-GBR
-GBR
The left pixel has the R set to black and the G & B on full brightness. On the next pixel, only the red is set. Thus the white (or any shade of gray) pixel has moved right by 1/3 of a pixel. It only worksd with grayscale bot man, does it make for great, smooth graphics and scrolls. Imagine, the DS suddenly has an X resolution of 768 pixels.
I wrote a scroller which used the system and it worked like a charm. I always outline the text with a black pixel to avoid fringing. You cannot use it with coloured images so I use 2 sets. One grayscale (and triple X-res) and then another using only single pixel resolution.
RGB
RGB
RGB
This (assuming 31 for all 3 colours) then you get a white pixel. Now, look at this
-GBR
-GBR
-GBR
The left pixel has the R set to black and the G & B on full brightness. On the next pixel, only the red is set. Thus the white (or any shade of gray) pixel has moved right by 1/3 of a pixel. It only worksd with grayscale bot man, does it make for great, smooth graphics and scrolls. Imagine, the DS suddenly has an X resolution of 768 pixels.
I wrote a scroller which used the system and it worked like a charm. I always outline the text with a black pixel to avoid fringing. You cannot use it with coloured images so I use 2 sets. One grayscale (and triple X-res) and then another using only single pixel resolution.