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
Braden's avatar
Thanks Sabrina! Glad you liked it.
Benjamin's avatar
TRUEFRAME logo
one possession number driving the text, cursor and shader all at once is such a clever setup
Braden's avatar
Thanks Benjamin! I didn't want to hard wire everything together because the piece only ever moves one way, from calm to possessed, so one dial fit that shape. It also keeps everything in sync. With separate timers, the shader could peak while the pumpkin was still smiling.
Nesar Ahmad's avatar
Phi Studio logo
Inspiring creative work.
Braden's avatar
Thank you Nesar!
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