News for hackers. Stuff that matters.
Re:Hacking the Planet With Notcurses: A Guide to TUIs and Ch... by dankamongmen on Thursday June 04, 2020 @12:13PM (#23418456)
You can use ncplane_blit_rgba() and ncplane_blit_bgrx() from Notcurses to freely blit RGBA data directly to the terminal. In addition, you'll benefit from the various advanced blitters built into Notcurses. Simply moving from pixels to cells in the naive method doesn't look good due to the different aspect ratios. Half blocks are a much better solution, and my quadrant blitter is superior to even those IMHO (all are available via the NCBLIT_* macros).
Re:Hacking the Planet With Notcurses: A Guide to TUIs and Ch... by dankamongmen on Thursday June 04, 2020 @12:27PM (#23418667)
As an example, here's Notcurses as a backend for NEStopia, allowing you to play NES in the terminal: https://www.youtube.com/watch?v=PHOHxqGkTUA&t=77s (this video was very early and raw, apologies for the production quality or lack thereof).

I've experimentally rigged Notcurses as a backend for both Mesa and Cairo. Works fine, so long as you've got sufficient cells to back your canvas.