Log In  

Cart #subpix-0 | 2020-11-07 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

I recently saw a post on twitter about "subpixel rendering," and I wanted to try my hand at a few functions! A couple of hours later... I now have this. I can't promise it's perfect, nor do I have all of the shapes I want to try, but I'll release it now if anyone is interested.
Feel free to suggest any other shapes as well as finding bugs/fixes!

P#83942 2020-11-07 18:31


I took a shot at antialiasing this:

Cart #subpix_aa-0 | 2022-01-08 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

It's basically just rendering 4 times with different offsets to different bitplanes, then setting the palette appropriately. The key section is:

 poke(0x5f5e, 0b00010001)
 poke(0x5f5e, 0b00100010)
 poke(0x5f5e, 0b01000100)
 poke(0x5f5e, 0b10001000)

I'm pretty sure this must have been done before but I haven't seen it...

P#104555 2022-01-08 18:40

New version, does things a little differently. Uses only 3 samples per pixel, laid out in a triangle pattern, and refreshes only one of those per frame, so in some sense the "true" refresh rate is only 20Hz. Super cheap, though, basically the same rendering cost as the original!

Cart #subpix_aa-1 | 2022-01-09 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA

P#104643 2022-01-09 08:28

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-12-05 21:55:12 | 0.011s | Q:20