English | 简体中文
32 animated ASCII / Unicode effects for your terminal, in one fast, dependency-free Rust binary. Code rain, fire, a coiling dragon, the Matrix, a black hole, fireworks, the solar system, Mona Lisa, a giant DeepSeek Harness wordmark, a self-typing Claude Code session, and 22 more — in ASCII by default, with Unicode as an opt-in.
32 effects · 8 themes · zero dependencies · ~2 ms startup · ~1.1 MB binary · macOS / Linux / WSL
Install · Quick start · Help · Effects · ASCII / Unicode · Keys · Themes · Performance · FAQ
The command is
trix; the package and repository aretrix-effects— the same short-command split asripgrep/rg. The old nametexiaowas renamed totrixin v0.5.0 and to the package nametrix-effectsin v0.9.1.
# macOS / Linux, prebuilt (uses the latest GitHub release)
curl -fsSL https://raw.githubusercontent.com/Doswind/trix-effects/master/install.sh | sh
# Beta: remote/SSH renderer test build
curl -fsSL https://raw.githubusercontent.com/Doswind/trix-effects/master/install.sh | TRIX_VERSION=0.11.1-beta.4 sh
# Rust toolchain, straight from git
cargo install --git https://github.com/Doswind/trix-effects --locked
# From a clone
git clone https://github.com/Doswind/trix-effects
cd trix-effects
cargo install --path . --lockedThe binary is installed as trix and needs no runtime dependencies. Release assets are static Linux x86_64 / aarch64 builds and a macOS universal binary; install.sh verifies SHA256SUMS before installing to $HOME/.local/bin (override with TRIX_INSTALL_DIR).
Requires Rust 1.70+ when building from source.
trix # cycle all 32 effects
trix rain # Code Rain
trix dragon --theme gold # golden dragon
trix blackhole --spin 0.25 # slower black hole
trix monalisa # Mona Lisa (static, ASCII by default)
trix monalisa --ghost # pure-ASCII ghost edition
trix matrix --unicode # NASA wall, Unicode edition
trix --playlist random --switch 8 # random order, 8 s each
trix --help rain # effect details + live preview
trix --list # catalog + themes
trix rain --snapshot rain.ans --size 120x36 --frames 90More one-command examples:
trix fire --theme ember # warm fire
trix dragon --plain # starfield-only backdrop
trix map --theme ice # holographic world map
trix beams --beam-motion jump # rising and falling beams
trix fireworks --density 2 # more fireworks
trix galaxy --density 1.5 --twinkle 2 --meteors 8
trix mario # ASCII by default
trix ecg # ASCII by default
trix dandelion --seed-count 180 --seed-speed 1.4
trix traffic --street vertical # top-down traffic
trix tornado --tornado-count 5 --tornado-speed 1.6
trix ballet --speed 1.3 # faster ice ballet
trix demoneye --eye-still # pin the eyeball, keep blinking
trix life --life-cycle 60 # 0–100 in one minute
trix dsh # DEEPSEEK HARNESS wordmark
trix dsh --trail 0 # no drop ghost, beam only
trix vibe --unicode # Claude Code glyphs, self-typing source
trix plasma # plasma field
trix launch # pad to orbit
trix interstellar # a patient 20-second docking
trix tomjerry --jump # enable jumpingtrix --help is not a plain flag dump. It renders the wordmark, a real frame of the HUD, a colour-coded effect grid, grouped options, theme swatches and copy-paste examples. trix --help <effect> adds a live preview rendered by the actual scene, plus that effect's own tuning flags.
trix --help # overview
trix --help rain # effect dossier + real preview
trix --help all # full option reference
trix --list # styled catalog on a TTY, plain text when pipedThe same layout degrades to aligned plain text when stdout is not a TTY, when NO_COLOR is set, or with --no-color. --ascii forces ASCII borders; --unicode forces Unicode borders. Unknown effects and options get a “did you mean?” hint.
Every effect name is given in English and Chinese; trix --list uses the same names.
| id | English | 中文 |
|---|---|---|
rain |
Code Rain | 代码雨 |
fire |
Blazing Fire | 燃烧火焰 |
dragon |
Coiling Dragon | 巨龙盘旋 |
map |
World Map | 世界地图 |
matrix |
The Matrix | 黑客帝国 |
blackhole |
Black Hole | 黑洞 |
beams |
Light Beams | 光束 |
fireworks |
Fireworks | 烟花 |
solar |
Solar System | 太阳系 |
galaxy |
Starry Galaxy | 满天星河 |
buddha |
Buddha's Halo | 佛光普照 |
tomjerry |
Tom & Jerry | 猫和老鼠 |
mario |
Super Mario | 超级马里奥 |
ecg |
Heartbeat Monitor | 心率跳动 |
dandelion |
Dandelion | 蒲公英 |
fish |
Aquarium | 水族馆 |
landscape |
Colorful Landscape | 五光十色 |
shanghai |
Oriental Pearl | 东方明珠 |
tiananmen |
Tiananmen Radiance | 光芒万丈 |
traffic |
Traffic Flow | 车水马龙 |
tornado |
Tornado | 龙卷风 |
storm |
Thunderstorm | 电闪雷鸣 |
monalisa |
Mona Lisa | 蒙娜丽莎 |
ballet |
Ice Ballet | 冰上芭蕾 |
demoneye |
Demon Eye | 恶魔之眼 |
life |
Threads of Life | 生命的轨迹 |
dsh |
DeepSeek Harness | 深度求索 |
vibe |
Vibe Coding | 氛围编程 |
volcano |
Volcano | 火山爆发 |
launch |
Rocket Launch | 火箭发射 |
plasma |
Plasma | 等离子 |
interstellar |
Interstellar | 星际穿越 |
Screenshots use the default ASCII glyphs. Unicode variants are shown only in the ASCII / Unicode section. All previews are rendered from the current code at 120×36 (Mona Lisa at 120×60; DeepSeek Harness at 160×48), truecolor.
Code Rain rain |
Blazing Fire fire |
Coiling Dragon dragon |
|---|---|---|
![]() |
![]() |
![]() |
World Map map |
The Matrix matrix |
Black Hole blackhole |
|---|---|---|
![]() |
![]() |
![]() |
Light Beams beams |
Fireworks fireworks |
Solar System solar |
|---|---|---|
![]() |
![]() |
![]() |
Starry Galaxy galaxy |
Buddha's Halo buddha |
Tom & Jerry tomjerry |
|---|---|---|
![]() |
![]() |
![]() |
Super Mario mario |
Heartbeat Monitor ecg |
Dandelion dandelion |
|---|---|---|
![]() |
![]() |
![]() |
Aquarium fish |
Colorful Landscape landscape |
Oriental Pearl shanghai |
|---|---|---|
![]() |
![]() |
![]() |
Tiananmen Radiance tiananmen |
Traffic Flow traffic |
Tornado tornado |
|---|---|---|
![]() |
![]() |
![]() |
Thunderstorm storm |
Mona Lisa monalisa |
Ice Ballet ballet |
|---|---|---|
![]() |
![]() |
![]() |
Demon Eye demoneye |
Threads of Life life |
DeepSeek Harness dsh |
|---|---|---|
![]() |
![]() |
![]() |
Vibe Coding vibe |
|---|
![]() |
Volcano volcano |
Rocket Launch launch |
|---|---|
![]() |
![]() |
Plasma plasma |
Interstellar interstellar |
|---|---|
![]() |
![]() |
Full effect notes (32)
| Effect | Description |
|---|---|
Code Rain (代码雨) rain |
Per-column heads and tails, randomized speed and depth, white-hot heads, blue/green two-tone tails, binary mist, horizontal data packets, CRT scanline |
Blazing Fire (燃烧火焰) fire |
The bottom merges into one wide fire bed; the tallest flames sit in the middle, while the tongues on both sides lean outward; embers and flare-ups |
Coiling Dragon (巨龙盘旋) dragon |
A Chinese dragon flying across the whole screen on a Lissajous path: arc-length body tracking, antlers, whiskers, mane, fangs, four claws, dorsal fin, tail fin, scales; a traveling wave runs from head to tail along the entire body; the default backdrop adds two ink-wash mountain ridges and a denser drifting cloud sea; --plain restores the old starfield-only backdrop |
World Map (世界地图) map |
Embedded Natural Earth land mask, city nodes, great-circle data packets, scan beams, UTC clock |
The Matrix (黑客帝国) matrix |
A NASA backend login wall: ASCII by default; --unicode switches to a blue NASA banner with white wordmark, red swoosh and a Unicode login frame; OPERATOR/PASSWORD/2FA, AUTH/DECRYPT, radar, ACCESS GRANTED |
Black Hole (黑洞) blackhole |
Event horizon, photon ring, accretion disk, lensing arcs, jets, meteors; the outer stars form a full "/"-tilted ellipse that fills the screen and presses past the top and bottom edges; the outermost ring is sparse . / : / + scatter with a denser middle band; every layer rotates in the same direction with differential speed (fast inside, slow outside), reading as one rotating elliptical disk |
Light Beams (光束) beams |
One-way horizontal beams in random bright colors; --beam-motion straight|jump (straight by default), --density / --beam-speed |
Fireworks (烟花) fireworks |
Rockets climb, then inner and outer particle rings bloom with delayed bursts; --density controls the firework density; city skyline and starfield |
Solar System (太阳系) solar |
Eight planets (no Pluto); the Sun sits in the top-left, light spreads in layered fans toward the lower right and stops above the planet line; round planets, Saturn's rings, moons, a comet |
Starry Galaxy (满天星河) galaxy |
A full-screen star sea with a dense central Milky Way band; animated star clusters, dark dust, constellation lines; --density, --twinkle, --meteors |
Buddha's Halo (佛光普照) buddha |
Outward mandala rings expand at equal spacing: every ring shares one expansion phase and the radial gap stays constant; the first ring starts outside the whole Buddha figure (body, head halo, lotus base), so it never covers the figure or overlaps the halo; at most 5 rings; ring brightness stays below the Buddha's gold (0.6 on the inner ring) and fades toward the outside; head halo, lotus base and particles are kept |
Tom & Jerry (猫和老鼠) tomjerry |
Tom chasing Jerry through a space station; slowed down and non-jumping by default, --speed / + - to adjust, --jump to enable jumping |
Super Mario (超级马里奥) mario |
A pure-glyph 1-1 level: clouds, hills and bushes, a brick floor with mortar seams, a question-block / brick / used-block row, green pipes, spinning coins, Goombas and mushrooms; auto running and jumping, blocks that pop out coins or mushrooms, stomped enemies, +200/+100/+1000 score popups. Uses no terminal background color at all: ASCII colored glyphs by default (# o = *); --unicode switches the sprites (Mario, Goombas, mushrooms, coins) to █ ▀ ▄ solid blocks, while hills, clouds, pipes and bricks stay glyph-based and are colored per object |
Heartbeat Monitor (心率跳动) ecg |
A green ECG monitor; about 56 BPM with random beat intervals and clearly random amplitude, QRS width and flat-segment length; ASCII by default, --unicode to switch |
Dandelion (蒲公英) dandelion |
3 clumps × 2 stems, 6 flower heads; the roots and lower stems of the left and right clumps bend toward the center; flower heads are 1.5× larger, everything else unchanged |
Aquarium (水族馆) fish |
A full-screen aquarium: 5 hand-drawn sprite fish (small 20×6 / medium 30×8 / large 38×9, soft oval bodies with rounded outlines, dark backs and bright bellies, forked tails, one bright eye, and a single pointed > snout; only the tails swish, the head and mouth stay fixed), plus 8–30 small <==o> / <=-o> fish (about 35% double-layer, 15% triple-layer bold, one eye only); bubbles use o / O / 8 with a random shade per bubble, each rising slowly in a straight line along a fixed column and swaying no more than 3 times over the whole climb; the count settles at 10–36; plants get random heights and spacing and grow in small patches; ASCII by default, --unicode switches to █ ▓ ▒ |
Colorful Landscape (五光十色) landscape |
Layered distant mountains, a calm lake, a boat, white geese, jungle on both sides; animated water, mist and petals |
Oriental Pearl (东方明珠) shanghai |
The Shanghai Bund at night, the Oriental Pearl Tower, neon high-rises, and a Huangpu River rebuilt on the plasma scene's drifting metaball field: cyan / ice currents merge and split while pink and gold tower and rooftop reflections ripple over them; two random boats on the river, each with a different size, shape and position (junk / barge / ferry, with deck, portholes, lit cabin windows, smoking funnel, mast lights, wake and water reflection); 1–2 meteors cross the night sky every 3–5 seconds (white-hot head plus fading tail); ASCII by default, --unicode available |
Tiananmen Radiance (光芒万丈) tiananmen |
Tiananmen gate enlarged to about 92% of the width and 62% of the height: double golden-tile eaves with upturned corners, a red-pillared gate tower with the national emblem, red walls, five archways with white stone surrounds, white-framed slogans and the central portrait, red flags and side buildings; golden beams first grow outward and upward from behind the roof, then light up in order from the inside out, cycling |
Traffic Flow (车水马龙) traffic |
City street with high-rises on both sides, neon and traffic; horizontal traffic is 3 rows of cars (roof / body / wheels, 8–16 cells long) across 4–5 lanes with dashed dividers and alternating directions; vertical traffic is 6 columns of top-down cars (5–9 rows, front/rear lights and side wheels); --street horizontal|vertical; --density controls traffic density; ASCII by default, --unicode available |
Tornado (龙卷风) tornado |
1–8 tornadoes move from left to right; twisted, pointed at the base and wider at the top; overall one step shorter than before (0.28–0.58 of the screen height) and lighter and sparser (brightness 0.42–0.85, 20 particles per row); 30 debris particles drift outward at the base |
Thunderstorm (电闪雷鸣) storm |
Dark clouds, slanting rain, a city silhouette, lightning; a layer of gray-white, irregular high cloud sits above the screen (denser, fading out at the bottom, drifting slowly to the right at about 3 columns per second) to add depth against the existing cloud band; lightning lights the whole screen white (still) |
Mona Lisa (蒙娜丽莎) monalisa |
A background-free portrait: the figure (hair, face, neck and shoulders, folded hands) is baked from a reference pixel painting; ANSI color blocks carry skin tones and shading, with ASCII glyphs for detail; no landscape, frame or floating dust; the figure is about 12% wider, closer to the original proportions; the default block version is static and does not blink; --unicode uses half blocks for more vertical resolution; --ghost switches to the original pure-ASCII “ghost” version (no background blocks, blinking kept, still / GIF); optional --gallery adds a faint warm gallery halo and floor glow behind the portrait (preview) |
Ice Ballet (冰上芭蕾) ballet |
An ice-ballet duet: a 39-scene-second choreography loops through 13 sections; the default 2x tempo makes one loop about 19.5 seconds (glide, crossover, arabesque, promenade, overhead lift, pair spin, death spiral, sissonne, Ina Bauer, final pose); joints use two-bone IK, clasped hands align automatically, limbs have soft edges and lag behind the torso; the routine covers most of the screen, three rows of spectators behind the boards sway, raise their hands and fire flashbulbs, and skate marks and reflections stay on the ice; --speed |
Demon Eye (恶魔之眼) demoneye |
One huge bloodshot eye fills the screen: it blinks every 8–15 seconds, singly or doubly (about 7:3); between blinks the eyeball darts only 1–2 times (darts at least 5 seconds apart), reaching the target in about 0.1 s and always returning to center within 0.45–0.85 s; the vertical pupil scales, eyelids press in, blood vessels and a blink shockwave; --eye-motion dart|still (default dart), --eye-still pins the eyeball dead center |
Threads of Life (生命的轨迹) life |
A 0–100 age timeline with glowing life lines on both sides; every human uses @ with a colored uppercase abbreviation on the same row and the relative's own age (friends who are not family carry no age); the bright beam grows with age (late in life it can cover most of the lifetime), fading from dark dots / dashes at the tail up to = at the head, with a ****@ comet tail; the first ~22%–42% of life (at most about 22 years) stays as sparse dim dots; when a track ends its row can be reused by someone later (school-age PAL/UNI +1 row → GF/WIFE, DOG −1 row → KID2, and the cat / parents' rows are reclaimed by later friends); DOG stays at −1 next to me for life; when PAL/UNI/WORK/FRIEND coexist they share one row: during the school years it sits on the other side at +1, and while a minor KID exists the whole group retreats to the nearest free row outside KID/CAT (usually +4; only rows actually used by children/pets are yielded, no longer fixed −5/−7), and all KIDs move back inside once grown; ME 0 / WIFE +1; KID1 +2, KID2 −1 (reusing the row next to me that DOG gave up), KID3 −2; before adulthood KID3 −2 / KID2 −1 / ME 0 / WIFE +1 / KID1 +2 is contiguous with no empty rows, and GRAND1/GRAND2 always hug their parent's row (moving with them as they drift); CAT +3 is born with the first child, just below KID1; DAD/MOM +3/+4 start yielding to +5/+6 two years before the child is born, and BRO +5→+7 follows; GPA/GMA/DAD/MOM get suitable random starting ages when I am 0 (58–70 / 56–68 / 25–33 / 23–31), BRO 0–4, ME 0; KID/GRAND/CAT/DOG count from their own birth, GF/WIFE are within ±2 years of my age; every row is fixed at one terminal row (it does not scale with terminal height, and tall terminals never produce empty rows from rounding); when ME ends, a roughly 6-second supernova finale plays (the flashback and stardust slow down while the comet keeps its speed: white core, life flashback, shockwave, stardust, brightened comet and a permanent halo at the top; the flashback beam that reaches ME's stop line stays three columns wide and never disappears); the death point and the top star keep @ + name + final age and appear/disappear in sync once per second; all the dead rise to the top in death order, one row apart, and their end labels fade in 0.5 s after the meteor arrives; humans blink as *, cats and dogs as +; GF approaches for 2 years, then stays 1–2 years before becoming WIFE; WIFE lives to 75–90 and dies after I become a star; AGE has no leading zeros; --life-cycle sets the length of one round |
DeepSeek Harness (深度求索) dsh |
A giant two-line wordmark with both lines centred: DEEPSEEK on top, HARNESS below. Letter gaps are protected — never zero, at least two blank columns in the 3× face and up to three in the 2× face — so every letter stays distinct. The blue whale mark sits immediately to the right of the K, its mouth touching the K; it fades in after the landing bounce. The intro fades the letters in one by one, then drops the lockup in stuttered one-row steps and gives a quick two-row upward hop when it lands; a deliberately faint ghost stack stays at HARNESS's feet, never over the letter bodies. After that the wordmark never disappears: a narrow diagonal band of light runs from the lockup's upper-left corner to its lower-right corner, lifting each glyph from ice blue to white as it arrives and letting it fall back behind the band. The sweep loops continuously, entering and leaving the frame before the next pass, and nothing is drawn between the letters — it is a pure font-brightness gradient, not a beam. A tiny star twinkles at the whale's tail tip, replaying the two-blink flare from the Interstellar scene's vanishing star. No fireworks or particle burst. --trail <f> sets the drop-ghost strength; ASCII by default, --unicode uses solid blocks (GIF) |
Vibe Coding (氛围编程) vibe |
A single-column Claude Code transcript that reads src/scenes/vibe.rs (or an embedded copy), types the source with a hand-written Rust syntax highlighter, and loops through six short windows per turn; each loop starts from a clean transcript; it shows the prompt, assistant/tool lines, + diff-style code, a rotating spinner with token count, the input box and the bypass-permissions footer; ASCII by default (>, *, L, >>), --unicode switches to Claude Code-style ❯ ◉ └ ✻ ▶▶ glyphs (GIF) |
Volcano (火山爆发) volcano |
The sky starts clear over a compact truncated cone. One continuous eruption builds a thick, churning canopy about half the screen wide: the dense middle keeps rolling as fresh ash is supplied and never shrinks, while the flanks stay thinner. Lava bombs and rock blocks rain out of the middle and explode on landing, a continuous fountain feeds the column, two curved lava rivers crawl down the cone, and volcanic lightning crawls through the ash. A dark foreground ridge with pines frames the scene. ASCII by default; --unicode uses solid blocks for the mountain and ash. |
Rocket Launch (火箭发射) launch |
A 24-second launch film: a larger two-stage rocket with twin boosters, blue-hour pad, ignition fireball, layered exhaust and world-space smoke, a following camera with shake, max-Q clouds, MECO / stage separation, a second-stage climb and an Earth-limb sunrise; --rocket-scale and --shake. Pure ASCII. |
Plasma (等离子) plasma |
Nine drifting metaballs add into a soft scalar field, textured with sine detail and rendered through a cycling palette. ASCII by default; --unicode uses a compact block ramp. |
Interstellar (星际穿越) interstellar |
An eight-section ring station turns at the lower right, every thick cabin tied back to a central control room by a spoke. The control block itself turns with the ring — hexagonal silhouette, windows, gold index and masts included — and carries a three-arm docking claw. A compact four-armed ship (one long gold index arm, one engine arm and two shorter side arms) slips in at the upper left, joins the station's upper-left radial and spirals slowly toward the hub while its roll turns with the ring; its index arm lines up with the long gold docking arm, and the two centres meet at 20.0 s. The touch throws a spark ring and a short flash, then the docked stack burns away toward a vanishing point with a short, faint trail of station echoes behind it, collapses into one star that blinks twice; the empty sky dips to black over half a second, recovers over another half second, and the station powers up again for the next pass. ASCII by default; --unicode uses solid blocks for the hull (GIF). |
Light Beams has two motion modes:
| Straight (default) | Jumping (--beam-motion jump) |
|---|---|
![]() |
![]() |
Every dual-form effect starts in ASCII. Add --unicode (or --charset unicode) to opt in; --ascii forces ASCII again. The dual-form effects are matrix, mario, ecg, dandelion, fish, landscape, shanghai, tiananmen, traffic, tornado, storm, monalisa, ballet, demoneye, life, dsh, vibe, volcano, plasma and interstellar.
mario / ecg in both glyph sets:
| ASCII (default) | Unicode (--unicode) |
|---|---|
![]() |
![]() |
![]() |
![]() |
shanghai / traffic in both glyph sets:
| ASCII (default) | Unicode (--unicode) |
|---|---|
![]() |
![]() |
![]() |
![]() |
dsh / vibe in both glyph sets:
| ASCII (default) | Unicode (--unicode) |
|---|---|
![]() |
![]() |
![]() |
![]() |
Vertical street:
Full-screen lightning flash:
trix mario # ASCII classic glyphs by default
trix mario --unicode # solid Unicode sprites
trix ecg # ASCII ECG monitor by default
trix ecg --unicode # Unicode ECG monitor- 32 switchable effects: command-line arguments, runtime hot-switching and themes.
- Help as a first-class surface: styled overview, per-effect dossier with a real scene preview, styled catalog and “did you mean?” errors.
- ASCII first: dual-form effects start in ASCII; opt into Unicode explicitly with
--unicode. - Low resource use: single-threaded, no async, no event-loop framework; 30 FPS by default;
libcis the only dependency. - Fast startup:
--versionmedian about 2.2 ms (Apple Silicon, release build); the release binary is about 1.1 MB (1,104 KiB). - Low memory: interactive RSS about 2.1–2.3 MB (120×36, truecolor).
- Diff rendering: double-buffered canvas that repaints only changed cells and merges SGR sequences.
- Color animation: 24-bit truecolor; 8 themes; degrades to 256 colors, 16 colors or monochrome.
- Recordable / benchmarkable: built-in
--snapshotand--bench. - Clean exit: raw mode, alternate screen, cursor and autowrap restored on normal exit, Ctrl-C, SIGTERM and panic.
Running trix without an effect name loops through all 32 effects:
trix # cycle by default, 12 s per effect
trix --playlist random --switch 8 # random order, 8 s per effect
trix --playlist cycle --switch 20 # sequential order, 20 s per effect
trix --transition dissolve --switch 6 # cross-dissolve instead of a fadeSwitches blend with a 0.6 s fade by default; --transition dissolve cross-dissolves cell by cell, and --transition none restores the instant cut with a white flash. Blends are capped at half of --switch. Press n / p to switch manually and reset the timer.
trix <effect> [options]
-e, --effect <name> effect to run; omit to cycle all
--playlist <mode> cycle | random [default: cycle]
--switch <secs> seconds per effect [default: 12]
--transition <mode> fade | dissolve | none [default: fade]
--transition-secs <s> blend length [default: 0.6]
-f, --fps <1-240> target frame rate [default: 30]
-s, --speed <0.05-8> animation speed multiplier [default: 1.0]
-t, --theme <name> color theme [effect default]
--charset <mode> kana | ascii | unicode [default: ascii]
--unicode use Unicode glyphs
--ascii force ASCII glyphs
--color <mode> auto | truecolor | 256 | 16 | mono [default: auto]
--no-color alias for --color mono
--perf <mode> high | balanced | low [default: balanced]
--no-sync disable synchronized output (DEC 2026)
--line-flush newline after each frame [default: on]
--no-line-flush disable the per-frame newline
--density <f> beams/fireworks/galaxy/traffic density [default: 1.0]
--spin <f> black hole rotation speed [default: 0.5]
--twinkle <f> galaxy twinkle rate [default: 1.0]
--meteors <n> black hole / galaxy meteors [default: 3]
--beam-speed <f> beams horizontal speed [default: 1.0]
--beam-motion <m> straight | jump [default: straight]
--trail <f> dsh: drop-ghost strength [default: 1.0]
--seed-count <n> dandelion drifting seeds [default: 90]
--seed-speed <f> dandelion seed drift speed [default: 1.0]
--street <dir> horizontal | vertical [default: horizontal]
--tornado-count <n> tornado count [default: 3]
--tornado-speed <f> tornado travel speed [default: 1.0]
--life-cycle <secs> life: seconds per 0-100 round [default: 120]
--eye-motion <m> demoneye: dart | still [default: dart]
--ghost monalisa: pure-ASCII ghost edition
--gallery monalisa: soft gallery glow
--plain dragon: plain starfield
--rocket-scale <f> launch: rocket size multiplier [default: 1.0]
--shake <f> launch: camera shake strength [default: 1.0]
--jump Tom & Jerry: enable jumping
--no-jump Tom & Jerry: disable jumping
--seed <u64> deterministic random seed
--duration <secs> exit automatically after N seconds
--no-alt do not use the alternate screen
--no-hud hide the top/bottom HUD
-l, --list catalog + themes
-h, --help [effect|all] help, effect dossier, or full reference
-V, --version print version
--completions <sh> print bash / zsh / fish completion script
Capture / benchmark
--snapshot <path> render --frames steps to ANSI ('-' = stdout)
--frames <n> simulation steps
--size <WxH> offscreen canvas size, e.g. 120x36
--bench offscreen render benchmark
Run trix --help all for every flag, aliases and defaults.
- Top bar: effect name and key on the left, live telemetry / speed / theme / charset on the right.
- Bottom bar: always-on key bar (
q quit,space pause,n/p next,t theme,h help,i info). - Playlist row: progress and the next switch countdown above the key bar.
ipanel: runtime state (measured and target FPS, terminal KiB/s) plus the CLI knobs the current effect actually uses.
rain, fire and monalisa are deliberately text-free ambient scenes: no top bar and no scene labels, but the bottom key bar and playlist row remain. --no-hud hides the top and bottom bars for recording; the h / i panels and pause box still work. --snapshot renders without the HUD.
See docs/hud-and-keys.md for the full HUD contract.
| Key | Action |
|---|---|
q / Ctrl-C |
Quit |
Esc |
Close the help/info panel; quit when no panel is open |
Space |
Pause / resume |
n / p, arrow keys |
Next / previous effect |
1–9, 0, [, ] |
First 12 effects |
m / e / d |
Super Mario / Heartbeat Monitor / Dandelion |
f / l / b / j |
Aquarium / Landscape / Oriental Pearl / Tiananmen |
c / z / k |
Traffic Flow / Tornado / Thunderstorm |
o / v / g / y |
Mona Lisa / Ice Ballet / Demon Eye / Threads of Life |
u / w |
DeepSeek Harness / Vibe Coding |
t |
Cycle themes |
+ / - |
Faster / slower (0.1×–8×) |
r |
Restart the current effect with a new seed |
i |
Info / parameters panel |
h / ? |
Help panel |
Shortcuts are case-insensitive, so Shift and Caps Lock work. The parser accepts CSI and SS3 cursor keys, ignores modifiers on arrows, and treats Alt/Option chords and mouse/paste reports as non-shortcuts.
The four newest scenes (volcano, launch, plasma, interstellar) have no single-key shortcut; use trix <effect> or cycle with n / p.
| Theme | Style | Default for |
|---|---|---|
neon |
Neon cyan / violet | rain, beams, tomjerry, shanghai, traffic |
matrix |
Matrix green | matrix, ecg |
ember |
Realistic fire (red → orange → yellow → white) | fire, demoneye, volcano, launch |
aurora |
Emerald dragon / aurora gold | dragon, fish, landscape, ballet, life |
ice |
Holographic ice blue | map, solar, galaxy, tornado, storm, dsh |
plasma |
Magenta / high energy | blackhole, fireworks, plasma, interstellar |
gold |
Imperial gold | buddha, mario, dandelion, tiananmen, monalisa, vibe |
chrome |
Silver-gray monochrome | manual selection |
fire derives its flame colors from five theme anchors; --theme ice gives a “cold flame”, and --theme ember is the default fire.
Environment: Apple Silicon (ARM64), macOS, Rust 1.96.1, --release (LTO + codegen-units=1 + panic=abort + strip). Canvas 160x48, 240-frame offscreen benchmark, truecolor. ANSI high is --perf high (exact RGB); ANSI balanced is the default --perf balanced.
| Effect | Mean render | p95 | ANSI high | ANSI balanced |
|---|---|---|---|---|
| rain | 0.078 ms | 0.098 ms | 12.3 KiB/frame | 10.9 KiB/frame |
| fire | 0.381 ms | 0.413 ms | 59.3 KiB/frame | 47.9 KiB/frame |
| dragon | 0.125 ms | 0.140 ms | 15.0 KiB/frame | 12.3 KiB/frame |
| map | 0.108 ms | 0.143 ms | 42.0 KiB/frame | 16.9 KiB/frame |
| matrix | 0.053 ms | 0.068 ms | 7.9 KiB/frame | 5.1 KiB/frame |
| blackhole | 0.097 ms | 0.113 ms | 24.8 KiB/frame | 14.1 KiB/frame |
| beams | 0.067 ms | 0.083 ms | 23.2 KiB/frame | 13.8 KiB/frame |
| fireworks | 0.040 ms | 0.061 ms | 7.7 KiB/frame | 4.5 KiB/frame |
| solar | 0.054 ms | 0.067 ms | 13.7 KiB/frame | 4.2 KiB/frame |
| galaxy | 0.085 ms | 0.094 ms | 21.6 KiB/frame | 7.6 KiB/frame |
| buddha | 0.049 ms | 0.061 ms | 8.4 KiB/frame | 3.5 KiB/frame |
| tomjerry | 0.025 ms | 0.036 ms | 2.2 KiB/frame | 1.3 KiB/frame |
| mario | 0.028 ms | 0.040 ms | 1.1 KiB/frame | 1.1 KiB/frame |
| ecg | 0.032 ms | 0.040 ms | 4.4 KiB/frame | 2.8 KiB/frame |
| dandelion | 0.032 ms | 0.042 ms | 3.6 KiB/frame | 2.8 KiB/frame |
| fish | 0.036 ms | 0.046 ms | 2.1 KiB/frame | 2.1 KiB/frame |
| landscape | 0.047 ms | 0.057 ms | 1.4 KiB/frame | 1.2 KiB/frame |
| shanghai | 0.215 ms | 0.244 ms | 11.5 KiB/frame | 4.2 KiB/frame |
| tiananmen | 0.084 ms | 0.100 ms | 6.6 KiB/frame | 2.8 KiB/frame |
| traffic | 0.029 ms | 0.037 ms | 1.6 KiB/frame | 1.6 KiB/frame |
| tornado | 0.093 ms | 0.107 ms | 18.4 KiB/frame | 16.2 KiB/frame |
| storm | 0.129 ms | 0.156 ms | 27.1 KiB/frame | 24.1 KiB/frame |
| monalisa | 0.027 ms | 0.032 ms | 0.0 KiB/frame | 0.0 KiB/frame |
| ballet | 0.138 ms | 0.156 ms | 25.1 KiB/frame | 7.4 KiB/frame |
| demoneye | 0.221 ms | 0.243 ms | 16.7 KiB/frame | 4.6 KiB/frame |
| life | 0.161 ms | 0.174 ms | 5.5 KiB/frame | 1.7 KiB/frame |
| dsh | 0.055 ms | 0.070 ms | 10.6 KiB/frame | 4.5 KiB/frame |
| vibe | 0.026 ms | 0.034 ms | 0.1 KiB/frame | 0.1 KiB/frame |
| volcano | 0.074 ms | 0.111 ms | 7.2 KiB/frame | 3.0 KiB/frame |
| launch | 0.050 ms | 0.075 ms | 7.4 KiB/frame | 3.4 KiB/frame |
| plasma | 0.409 ms | 0.429 ms | 80.5 KiB/frame | 39.9 KiB/frame |
| interstellar | 0.031 ms | 0.040 ms | 4.9 KiB/frame | 2.3 KiB/frame |
- At 30 FPS the frame budget is about 33.3 ms; the heaviest effect,
plasma, costs about 0.41 ms/frame and the heaviest writers (plasma,fire) stay well under 2% of one core. Rendering has never been the bottleneck on the server. - The default balanced profile removes redundant cursor addressing, erases cleared row tails with
EL, may reuse a colour that is at most 3/255 away per channel, and wraps each frame in DEC 2026 synchronized output. That cuts terminal traffic by roughly 10–90% depending on the scene, with no visible change;--perf highrestores byte-exact 24-bit colour. - Startup:
--versionmedian about 2.2 ms; the release binary is about 1.1 MB (1,104 KiB). - Memory: peak RSS under a real PTY 2.08–2.27 MiB.
- Interactive mode honors
NO_COLOR; offscreen--snapshot/--benchdefault to truecolor and can be overridden with--color.
This work ships in the 0.11.1-beta.4 pre-release; v0.11.0 does not include --perf or the new encoder.
The server renders a frame in well under a millisecond, so lag in a remote session is almost always terminal traffic, not CPU. A full-screen truecolor frame is 40–120 KiB; at 30 FPS that is 1.2–3.5 MiB/s before SSH overhead. When the client cannot parse that fast, the SSH and pty buffers fill up and the terminal starts showing frames that are seconds old — which feels like input lag, not just a lower frame rate.
If keystrokes arrive seconds late, the terminal or SSH client is behind, not the scene CPU: its display queue is still draining old frames. Lower the amount of new output and let it catch up. The defaults already aim for headroom, but the i panel's write time is the direct signal: a large write time means the pty is blocked. If keys still lag, try --perf low --color 256 --fps 12, --transition none, --no-sync, or a smaller terminal window.
A full-screen frame has no newlines of its own: it is one long cursor-addressed stream. Some SSH clients, loggers and trigger engines process output line by line, so that single line grows without bound and their input path slows down. Interactive frames now append a harmless newline after homing (ESC[?6l ESC[H LF); --no-line-flush turns it off. If the same effect is fast in a local terminal but slow over SSH, this is the first thing to test.
The defaults fix the common case without changing the artwork:
--perf balanced(default): at most 3/255 colour drift per channel, no redundant cursor moves,ELfor cleared tails, synchronized output, and a frame-rate governor. If a write takes more than 30% of the frame budget, the rate steps down (30 → 24 → 19 → 15 → 12 FPS); the animation clock keeps running at the requested speed, so the effect stays in real time and only drops frames. It recovers slowly when writes are cheap again.--perf low: 6/255 colour drift, a 20 FPS cap, a 10 FPS floor and transitions shortened to 0.2 s for very slow links or software-rendered clients.--color 256: roughly halves the remaining SGR bytes. These scenes are ASCII art, so the palette approximation is hard to see;--color 16is the last resort.--no-sync: turns off synchronized output if a particular terminal mishandles DEC 2026.--line-flush(default on) /--no-line-flush: the per-frame newline described above; disable it only if a client shows an extra blank line.--transition none: removes the 0.6 s blend that renders two scenes at once; useful on very weak links.--fpsremains an upper bound; the governor never exceeds it.
# weak SSH link / software terminal
trix plasma --perf low --color 256 --fps 20
# exact colours, no adaptation (local, fast terminal)
trix fire --perf high
# measure the real traffic of a profile
./target/release/trix plasma --bench --size 120x36 --frames 300 --perf balanced --color 256At 120x36 the heaviest scenes (plasma, fire, storm) emit about 22/27/19 KiB per frame with the default balanced profile, or about 10/17/14 KiB with --perf low --color 256; the governor keeps the bytes-per-second inside what the link can drain.
scripts/bench.sh
./target/release/trix fire --bench --size 160x48 --frames 300- Runs on macOS, Linux and WSL (Unix termios); native Windows is not implemented.
- 24-bit truecolor is recommended;
--color autodegrades automatically to 256 / 16 / mono. On a slow SSH link prefer--color 256and--perf low. - Dual-form effects always start in ASCII; add
--unicodeor--charset unicodefor Unicode.--charset kanacan mix half-width katakana intomatrix. - Linux binaries are static musl builds for
x86_64andaarch64, so they run on any distribution (including Alpine) on those architectures. - Non-TTY runs suggest
--snapshot;trix --snapshot -writes ANSI to stdout. - The canvas is black; a dark terminal is recommended.
- Why is the command
trixbut the packagetrix-effects? Short command, unique package name — theripgrep/rgsplit. Installing the package (for example withcargo install --git …) installs thetrixbinary. - Why do screenshots show ASCII? ASCII is the default and works in every terminal/font. Unicode previews are isolated in the ASCII / Unicode section.
- Why does a remote session feel laggy while the server is idle? The bottleneck is ANSI traffic and the client's parser, not the server. The default
balancedprofile cuts the traffic substantially and drops frames when writes block;--perf low --color 256goes further. See Remote / SSH sessions. - How do I record a GIF? Use
--snapshotplustools/ansi2png.py, ortools/render_gif.py; see Recording and documentation tools. - Shell completions?
trix --completions bash(alsozsh,fish); install the output in your shell's completion directory.
- Terminal driver (
src/term.rs): libc sets raw mode, the alternate screen, a hidden cursor and disabled autowrap; non-blocking key reads,TIOCGWINSZsize detection, SIGINT/SIGTERM/SIGHUP flags and a panic hook. - Canvas (
src/canvas.rs):Cell { char, fg, bg }double buffering; per-row changed spans; SGR is emitted for both foreground and background changes, and the background falls back to40(the black the program started with) so the previous scene's background never lingers; truecolor / 256 / 16 / mono (mono draws glyphs only). Themonalisablock portrait uses background color;mariodoes not. - Zero framework:
libcis the only dependency; no tokio, crossterm or worker threads. - Help (
src/help.rs,src/meta.rs): effect metadata drives--help,--help <effect>(with a real scene preview),--help all, the styled--list, theipanel and the interactivehpanel; the layout is width-aware and degrades to ASCII / mono. - Code rain: per-column heads and tails, random speed and depth, binary mist, horizontal data packets, CRT scanline.
- Fire: Doom-fire cellular propagation; the bottom merges into one wide fire bed, the middle flames are tallest, and the side tongues lean outward.
- Dragon: the flight path is resampled by arc length and the long serpent body is splatted into intensity / depth buffers; a large Chinese dragon head, antlers, whiskers, mane, four claws, dorsal fin, tail fin and scales; full-screen Lissajous flight.
- World map: Natural Earth land mask, coverage sampling, city nodes, great-circle arcs, scan beams.
- The Matrix: a NASA backend login wall. ASCII by default;
--unicodeswitches to a blue NASA banner (white wordmark, red swoosh, white star points, blue-white light sweep) and a centered, lowered Unicode-framed login box; OPERATOR/PASSWORD/2FA, AUTH/DECRYPT progress, logs, radar, ACCESS GRANTED. - Black hole: event horizon, photon ring, accretion disk, lensing arcs, jets, meteors, infall; outer stardust follows a full "/"-tilted ellipse that fills the screen; the outermost ring uses random low-density
./:/+scatter, with a middle stardust band between the inner and outer layers; all layers rotate in the same direction with differential speed (fast inside, slow outside, while the outer ring and accretion band speed up together), reading as one rotating elliptical disk; overall orbital speed ×1.7;--spinadjusts the whole rotation. - Beams: one-way, left to right; straight by default,
--beam-motion jumpmakes them rise and fall;--density/--beam-speedadjust density and speed. - Fireworks: rockets + inner/outer particle rings + delayed bursts; particle trails, gravity, a city silhouette, a starfield.
- Solar system: the Sun in the top-left; the eight planets on orbital lines below; sunlight spreads in layered fans toward the lower right and stops above the planet line.
- Galaxy: precomputed stars along a diagonal Milky Way band plus a central bulge; animated cluster arcs, dark dust, meteors, constellation lines;
--density/--twinkle/--meteorsare adjustable. - Buddha's halo: reverted to the previous edition; the three static mandala particle rings now expand outward dynamically; head halo, lotus base and particles are kept.
- Tom & Jerry: a space-station corridor; frame animation; slow and non-jumping by default;
--speed/+/-adjust speed,--jumpenables jumping; the HUD shows the multiplier. - Super Mario: automatic running and jumping; question blocks pop out mushrooms, coins and score; scrolling sky / hills / ground / Goombas; ASCII classic glyphs by default,
--unicodeswitches to solid sprites. - Heartbeat Monitor: ECG grid, P-QRS-T waveform, scan line, HR/SpO2/SYS-DIA; ASCII waveform by default,
--unicodeswitches to Unicode box drawing / solid waveform. - Dandelion: 3 clumps × 2 stems / 6 flower heads; left and right roots bend toward the center; flower heads ×1.5.
- Oriental Pearl: Bund night view + Oriental Pearl + Huangpu River reflections; two random boats on the river — hull type (junk / barge / ferry), size, hull palette, channel depth and drift direction are all random; distant boats sit low on the water while near boats are large and press against the frame, with decks / portholes / lit cabin windows / smoking funnels / mast lights / bow lanterns / wakes and water reflections; 1–2 meteors cross the night sky every 3–5 seconds (about 18% of intervals are skipped), with a white-hot head and an ice-blue or warm-gold fading tail, flying into the skyline or fading out and being recycled.
- DeepSeek Harness: a two-line lockup (
DEEPSEEK/ centredHARNESS) is laid out from the 6×9 / 8×11 display faces with horizontal pixel doubling. The layout now treats spacing as part of the design: the old zero/one-column candidates were removed, the 3× face always keeps two blank columns, and the 2× face tries three then two before one. At 160×48 the lines are 117×9 with three-column gaps; at 248×56 they are 206×11 with two-column gaps. A hand-traced blue whale (brand blue body, white belly and eye patch, tail upper-right) sits immediately to the right of the K — its mouth touches the K — and fades in after the landing bounce; it is 20×10 at 160×48, 13×6 at 120×36, 11×5 at 100×30 and hidden below 100 columns. The intro is a per-letter reveal with a top-to-bottom wipe and a quantised one-row drop; when the lockup lands it makes one quick two-row hop back up before settling, while the ghost stays on the bottom step. The ghost belongs to HARNESS alone: it starts at the feet of the letters and stays faint, so it reads as an afterimage rather than a second copy of the text. The wordmark then stays on screen forever: a narrow diagonal band of light runs from the upper-left corner to the lower-right, with the glyphs lifted from ice blue to white as it arrives and dropped back to ice blue behind it. The pulse enters and leaves the frame before the next pass, so the sweep loops continuously, and no beam is drawn between the letters — only the font's own brightness and colour change. A small star sits at the whale's tail tip: it keeps a faint, slow twinkle and every 4.6 s replays the Interstellar vanishing star's two-blink flare — a hot*core, cross arms, diagonal rays and a short expanding ring of dots. No other flare or particle burst.--trailscales the ghosts. - Rocket Launch: a procedurally scaled two-stage stack (fairing, core, twin boosters and engine bells) is drawn from a 7/9/11-column glyph grid; the camera follows the ascent and shakes on ignition and separation. Exhaust is a layered ASCII plume with a white-hot spine and shock diamonds, backed by world-space smoke, steam and sparks. The blue-hour sky gradient, parallax star layers, cloud deck, MECO flash, tumbling core and boosters, Earth-limb atmosphere and orbital sunrise are drawn around it.
--rocket-scaleand--shaketune the framing. - Vibe Coding: reads
src/scenes/vibe.rs(falling back to a compile-time copy), normalises it to ASCII, skips the test module and builds six 10-line windows per turn. A hand-written Rust tokenizer colours comments, strings, numbers, keywords, types, macros and function names; the transcript is a typed queue that only reveals lines up to the typing head (the area below stays blank) and clears before the next loop, with a Claude Code-style spinner, token count and composer. - Offline map data:
tools/gen_land.pydownloads Natural Earth and rasterizes it intosrc/data/land_720x360.bin; runtime never touches the network.
trix dragon --snapshot dragon.ans --size 120x36 --frames 145 --seed 7
python3 tools/ansi2png.py dragon.ans dragon.png --size 120x36 --label "trix dragon"
python3 tools/render_gif.py dragon docs/dragon.gif --start 100 --frames 24 --step 3Documentation assets: docs/help.png, docs/help-rain.png and docs/help-full.png are rendered from trix --help, trix --help rain and trix --help all with TRIX_HELP_TTY=1 and --color true, then converted with tools/ansi2png.py (--size 80x40 for help-rain). Always force --color true: under a NO_COLOR shell the styled help correctly falls back to mono, which would bake a white-only screenshot. docs/social-preview.png is the 1280×640 GitHub social preview.
cargo test
cargo clippy --all-targets
cargo fmt --checkThere are currently 262 unit / integration tests. See .github/workflows/ci.yml for the Linux/macOS CI matrix.
- Current version: 0.11.0 (
trix --version), tagv0.11.0(2026-10-22). - Beta: 0.11.1-beta.4 (tag
v0.11.1-beta.4, pre-release): remote/SSH renderer overhaul,--perf high|balanced|low,--no-syncand--line-flush. Install withTRIX_VERSION=0.11.1-beta.4. - 0.11.0 adds four generative scenes:
volcano,launch,plasmaandinterstellar. - 0.10.0 adds
dsh(DeepSeek Harness) andvibe(Vibe Coding), plus the--trailknob. - 0.9.1 renames the package/repository to
trix-effects(command staystrix), hardensinstall.sh, adds cache-safe ASCII previews and contributor/launch docs. - 0.9.0 was the short-lived
trix-tuiname; it added the styled help system, removed thefairyentry (source retained), and madelifepart of the 26-effect set. - Previous: tag
v0.9.0(trix-tui);v0.8.0(Mona Lisa / Ice Ballet / Demon Eye; 26 effects includingfairy);v0.7.0(aquarium / landscape / Oriental Pearl / Tiananmen / traffic / fairy / tornado / thunderstorm, playlists);v0.6.0(Mario / ECG / dandelion, blue-green code rain);v0.5.1(automated release pipeline). - Rollback:
git checkout v0.9.0 # inspect the previous version only (detached HEAD) git switch master git reset --hard v0.9.0 # fully revert to the previous version
- Extra backups (not in git):
backups/trix-v0.1.0-*throughtrix-v0.7.0-*, containing source tarballs and aarch64 macOS binaries. - Change log: English · 中文.
- Pushing a
v*tag builds the binaries and creates a GitHub Release. - macOS:
aarch64-apple-darwin+x86_64-apple-darwin, merged withlipointo a universal binary. - Linux: static musl builds for
x86_64andaarch64(the ARM64 build is cross-compiled and smoke-tested under QEMU). - Assets:
trix-effects-<version>-macos-universal.tar.gz,trix-effects-<version>-linux-x86_64.tar.gz,trix-effects-<version>-linux-aarch64.tar.gz, plusSHA256SUMS. Run workflowon the Actions page builds artifacts without creating a Release.
Issues and pull requests are welcome. See CONTRIBUTING.md for the development setup and the checks to run, and CODE_OF_CONDUCT.md for the community rules. Launch copy and channel drafts live in docs/LAUNCH.md.
- Land outlines: Natural Earth 1:110m land, public domain, converted from GeoJSON via natural-earth-vector.
- Doom-fire inspiration: pserey/doom-fire-algorithm, horizonwiki/fire; this project's Rust implementation, multiple fuel stacks, palette and rendering are independently written.
- The Buddha ASCII art is adapted from ascii.co.uk/art/buddha (original author credited as
hjw) for thebuddhascene; this project adds color, halo, lotus base, particles and animation. - This project's code: MIT.











































