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.
| Language | Updated at | Download |
|---|---|---|
| Simplified Chinese | 2026-11-19 14:38:49 | Chinese Documentation (ZIP) |
| English | 2026-11-19 14:38:49 | English Documentation (ZIP) |
Development Tools
| Operating system | Download |
|---|---|
| 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
| Example | Specification | Dependencies | Demonstrates |
|---|---|---|---|
hello.clx | coloX-16 | — | Introduction: _init/_update/_draw lifecycle, movement with buttons, basic drawing, and FPS queries |
qrcode.clx | coloX-4 | — | qrcode() generation and returned width |
anim_easing.clx | coloX-16 | anim (built-in) | Drawing and comparing 30 easing curves (anim_effect) |
json_pack.clx | coloX-16 | cjson (built-in) | cjson encoding/decoding, the json.null sentinel, cjson_safe error handling, string.pack binary protocol frames, and iterating utf8 code points |
shootingstar.clx | coloX-PICO8 | — | Complete shooting-star animation: generational GC, local API bindings, adaptive __vm_speed_lvl, and other performance techniques (see tips.md) |
vg_showcase.clx | coloX-32C | vg (usemod) | ThorVG showcase: shapes/gradients/strokes/transforms/scenes/duplicate/mask/text (round dial logo) |
touch_round.clx | coloX-16C | — | 480x480 round-screen touch: touch() coordinates/trails and touchdef hot-zone buttons |
text_ttf/text_ttf.clx | coloX-32B | — (dig.ttf included) | TTF registration with font_add, fallback fonts, and multiple sizes rendered with drawTxt_h |
img_gif/img_gif.clx | X-480x480_16 | — (anim.gif included) | Streaming GIF decoding/playback: img_gif_load/img_gif_next/img_gif_palrefresh/img_drawzoom |
img_webp/img_webp.clx | coloX-16 | — (anim.webp included) | WebP loading and centered drawing: img_loadwebp/img_draw |
audio_wave/audio_wave.clx | coloX-16 | — | Streaming PCM playback with wave(): Lua-generated scales and feeding chunks according to free buffer space |
airdata_rec/play_airrec.clx | coloX-16 | Firmware with airdata and mic support, Python 3 with PyUSB and libopus on the computer | USB 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.clx | coloX-16 | net (usemod, network required) | Network error paths: handling DNS failures and connection-refused error strings |
net/websocket_echo.clx | coloX-16 | net (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.