uctx - interactive 2D vector graphics

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
pippin
Posts: 2
Joined: Fri Apr 08, 2022 6:16 pm

uctx - interactive 2D vector graphics

Post by pippin » Sat Apr 09, 2022 8:28 pm

See https://ctx.graphics/uctx/ for a live web demo containing example, API documentation and downloadable firmware images for esp32 and rp2040.

ctx is a compact and configurable vector rasterization system - with support for unicode scalable outline fonts, kerning and event handling, it can drive displays with more pixels than a microcontroller has RAM by rendering previews at lower resolution/color fidelity.

The micropython integration has now reached a stage of increasing stability, the color/gradient handling still needs some work. ctx itself has more capabilities that are not fully exposed, but the todo-list for ctx itself is now considerably longer than uctx.

The examples can also run with the unix port within the ctx terminal emulator, the vector drawing commands are then transmitted raw from micropython to the terminal, a future addition that will be interesting is making it possible to hook this up to an UART (and similar) through callbacks, ctx support for this is considered the baseline and has also been tested over TCP with an ESP32.

Texture handling has not been properly tested/integrated for constrained memory use yet; small textures might work though.

Post Reply