Over the past few months (off and on), TIny and I have been working on a 16-bits per pixel graphics library for the CE C toolchain. The library uses column-major mode to avoid screen tearing, and allows for logical frames by enabling / disabling framebuffer copies. This is particularly useful given the lack of a buffer when in 16-bpp graphics modes. Here's a list of some of the currently finished routines:

  • Set/GetPixel
  • Rectangles (filled, outline, clipping)
  • Lines (horizontal, vertical, regular, clipping)
  • Circles (filled, outline, clipping)
  • Sprites (transparent, scaled, regular, clipping)
  • Text (colors, scaling)
  • A few other things (here's a full list)


Here's some eye candy as well:




Here's a link to the repository if you'd like to check it out: https://github.com/EzCE/gfx16/
Feel free to drop any suggestions for routines we should consider including in the library before release Smile

Also thanks to calc84maniac for giving us some guidance when working with display modes!
Nice work guys, this is awesome Very Happy
Nice work Smile

Also a whole bunch of screenshots and not one showing 16bpp graphics Sad
Interesting, good job!
MateoConLechuga wrote:
Nice work Smile

Also a whole bunch of screenshots and not one showing 16bpp graphics Sad


Here's some fun color gradients (generated using the algorithm from Michael2_3B's color gradient generator):

This looks very promising. The gradients look great, I'm definitely not used to that sort of color fidelity coming from a CE screen haha.

Is this fast enough to be used for games and other real-time applications, particularly relatively complicated ones such as Oiram? Are you aware of a specific consistent point in which it noticeably begins to struggle? Seeing as this is all programmed in assembly, I assume it's reasonably well-optimized enough for most typical use cases.

Definitely going to try my hand at making a Processing-like tool using this. A live code sketch editor for the CE seems like a fun idea to try.
Oof data sizes lol!

But seriously this is great work, HQ visuals calc speaking for sure Very Happy.

Maybe something like Myst would be a good use of this? (Though you might need the help of a USB drive).
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement