Haunted CLI: A Rive Scene with GPU Canvas and CRT EffectsHaunted CLI: A Rive Scene with GPU Canvas and CRT Effects
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started
A fake terminal. A coding agent starts building a little Rive scene, and partway through, something else starts typing.
I used both the Rive CLI and GPU Canvas. The agent wrote the scene in RML through the CLI. The terminal renders to an offscreen GPU Canvas and runs through a CRT shader I wrote in WGSL. A state machine and some Luau scripts handle the typing.
The whole thing runs off one data-bound number I called "possession." As it climbs, the text, the cursor, the shader and the preview window all go wrong together.
I did the preview animations by hand in the Rive Editor.
I'd never opened @Rive until a few days ago.
Sabrina's avatar
love it
Benjamin's avatar
TRUEFRAME logo
one possession number driving the text, cursor and shader all at once is such a clever setup
Back to feed
The network for creativity
Join 1.25M professional creatives like you
Connect with clients, get discovered, and run your business 100% commission-free
Creatives on Contra have earned over $150M and we are just getting started