#shader #wgpu #terminal-graphics #terminal #tui #graphics

tui-shader

A ratatui widget that renders a fragment shader in the terminal

9 releases

Uses new Rust 2024

0.0.9 Mar 9, 2025
0.0.8 Mar 7, 2025
0.0.6 Feb 25, 2025

#68 in Rendering

Download history 41/week @ 2025-02-11 242/week @ 2025-02-18 293/week @ 2025-02-25 264/week @ 2025-03-04 36/week @ 2025-03-11

876 downloads per month

MIT/Apache

44KB
795 lines

What is tui-shader?

tui-shader provides the ShaderCanvas StatefulWidget for the ratatui crate allowing us to harness the power of GPU shaders to make our terminals a more beautiful place.

Warning This crate is still very early in development, please expect: bugs, major breaking changes, lack of documentation, poor API design, lots of other terrible things.

Shadertuiy

The example shadertuiy (like shadertoy, get it?) gives an example of a wgsl shader that can be used in tui-shader and let's one play around with shaders by quickly previewing the result.

Examples

For the sake of simplicity, most examples run for a few seconds, and then quit. To run examples use the following command:

cargo run --example=<name-of-example>

Dependencies

~10–41MB
~645K SLoC