tuupola / hagl

Hardware Agnostic Graphics Library for embedded
https://www.appelsiini.net/tags/hagl/
MIT License
316 stars 49 forks source link

Styled char/text proposition & ideas #96

Closed CHiPs44 closed 8 months ago

CHiPs44 commented 1 year ago

Here is a proposition to implement styled char/text in HAGL.

One can now write text with optionally transparent background and foreground colors and zoom or shrink it.

You can look at https://github.com/CHiPs44/hagl_sdl2/blob/chips44-update-2/demo.c to see an example. Should I make a PR for this project, too?

I know it is something you want to implement for a long time, that's why I make this proposal.

Other ideas:

Silly ideas:

CHiPs44 commented 1 year ago

Still not ready, checking 1/2/4 bits depth compatibility since blit and scale_blit seems to handle only 8 and 16 bits depth (1 or 2 bytes per pixel), and the last update to master introduced conflicts.

CHiPs44 commented 1 year ago

(resolving a bug with transparent char display...)

CHiPs44 commented 8 months ago

Moved to https://github.com/CHiPs44/hagl_pico_vgaboard/tree/develop/hagl_ext.