palettes

palettes is the part of OmniPython that turns a palette index into a color a display, LED or terminal can use: wheels, cubes, Material Design swatches and the sixteen Windows names, with the same code on MicroPython-compatible boards, CircuitPython-compatible boards and CPython. It has no dependencies.

Edit the code below and press Run. It runs in your browser, on MicroPython compiled to WebAssembly.

Initializing Python…

  

Install it, then run your first program. The guides take one task each, the docstrings in lib/palettes document every name, and How it works explains the design.