Skip to main content

Documentation and Resources

Download the complete Markdown documentation, development tools, and example cartridges.

Complete Documentation​

Each package contains all 30 website articles, including Open Source and the VSCode Plugin, all local attachments, and all 14 examples with their libraries, fonts, and images. Open the package README to begin; no website build is required. Tools are downloaded separately.

LanguageUpdated atDownload
Simplified Chinese2026-11-19 14:38:49Chinese Documentation (ZIP)
English2026-11-19 14:38:49English Documentation (ZIP)

Development Tools​

Operating systemDownload
Windows (x64)Windows Tool (ZIP)
macOS (Intel x86_64)macOS Tool (ZIP)

coloX Example Cartridges​

Complete, runnable .clx examples covering typical uses of the core API and each module. Each example is self-contained (required resources are in the same directory or its subdirectories).

Download the Complete Example Bundle​

All 14 examples and their accompanying scripts, fonts, and images, with English documentation and comments. Chinese characters used to demonstrate UTF-8 and font fallback are intentional.

Download English Examples (ZIP)

Running the Examples​

Quick desktop execution (no full build required):

./tools/coloXtest -d guide/examples/ -r hello.clx
# For examples in subdirectories, keep the trailing slash after -d:
./tools/coloXtest -d guide/examples/net/ -r websocket_echo.clx

Example Index​

ExampleSpecificationDependenciesDemonstrates
hello.clxcoloX-16—Introduction: _init/_update/_draw lifecycle, movement with buttons, basic drawing, and FPS queries
qrcode.clxcoloX-4—qrcode() generation and returned width
anim_easing.clxcoloX-16anim (built-in)Drawing and comparing 30 easing curves (anim_effect)
json_pack.clxcoloX-16cjson (built-in)cjson encoding/decoding, the json.null sentinel, cjson_safe error handling, string.pack binary protocol frames, and iterating utf8 code points
shootingstar.clxcoloX-PICO8—Complete shooting-star animation: generational GC, local API bindings, adaptive __vm_speed_lvl, and other performance techniques (see tips.md)
vg_showcase.clxcoloX-32Cvg (usemod)ThorVG showcase: shapes/gradients/strokes/transforms/scenes/duplicate/mask/text (round dial logo)
touch_round.clxcoloX-16C—480x480 round-screen touch: touch() coordinates/trails and touchdef hot-zone buttons
text_ttf/text_ttf.clxcoloX-32B— (dig.ttf included)TTF registration with font_add, fallback fonts, and multiple sizes rendered with drawTxt_h
img_gif/img_gif.clxX-480x480_16— (anim.gif included)Streaming GIF decoding/playback: img_gif_load/img_gif_next/img_gif_palrefresh/img_drawzoom
img_webp/img_webp.clxcoloX-16— (anim.webp included)WebP loading and centered drawing: img_loadwebp/img_draw
audio_wave/audio_wave.clxcoloX-16—Streaming PCM playback with wave(): Lua-generated scales and feeding chunks according to free buffer space
airdata_rec/play_airrec.clxcoloX-16Firmware with airdata and mic support, Python 3 with PyUSB and libopus on the computerUSB microphone streaming. The cartridge forwards Opus bytes from micpoll(3,960,3) via airdata_send(16,...). The companion airmic_recv.py script decodes the stream to WAV and applies packet loss concealment. See airimg.md for the protocol.
net/error_handling.clxcoloX-16net (usemod, network required)Network error paths: handling DNS failures and connection-refused error strings
net/websocket_echo.clxcoloX-16net (usemod, network required)WebSocket echo: ws_connect/ws:send/ws:receive and Copas coroutine scheduling

Network examples include the three networking libraries colox_net.lua/colox_http.lua/colox_ws.lua (Lua libraries loaded with #include).

Further References​

  • See the main index at guide/README.md for API topic and module documentation.