pygraphics
pygraphics is the part of OmniPython that draws: shapes, text and images into a framebuffer, with the same code on MicroPython-compatible boards, CircuitPython-compatible boards and CPython. Every drawing call returns the rectangle it changed, so you can send just that part to a screen.
Edit the code below and press Run. It runs in your browser, on MicroPython compiled to WebAssembly.
Initializing Python…
Install it, then draw your first picture. The guides take one task each, the reference lists every name, and How it works explains the design.