tui-shader

Crates.iotui-shader
lib.rstui-shader
version0.0.9
created_at2025-02-17 19:03:35.070922+00
updated_at2025-03-09 20:19:24.919587+00
descriptionA ratatui widget that renders a fragment shader in the terminal
homepagehttps://github.com/pemattern/tui-shader
repositoryhttps://github.com/pemattern/tui-shader
max_upload_size
id1559254
size111,041
Paul Mattern (pemattern)

documentation

https://docs.rs/tui-shader/latest/tui_shader/

README

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>
Commit count: 83

cargo fmt