Expand description
tachyonfx - A ratatui library for creating shader-like effects in terminal UIs
This library provides a collection of effects that can be used to enhance the visual appeal of terminal applications, offering capabilities such as color transformations, animations, and complex effect combinations.
Modules§
Structs§
CellIteratorprovides an iterator over terminal cells.- A utility struct for mapping and transforming colors based on a given alpha value. The
ColorMappercaches the original color and alpha value to avoid redundant transformations. - Represents an effect that can be applied to terminal cells. The
Effectstruct wraps a shader, allowing it to be configured and applied to a specified area and cell selection. - A struct for managing the timing and interpolation of effects. The
EffectTimercontrols the duration and progress of an effect, allowing it to be reversed, reset, and processed over time.
Enums§
- A filter mode enables effects to operate on specific cells.
Traits§
- A trait for rendering the contents of one buffer onto another.
- A trait that provides a method to calculate a centered, shrunk rectangle within the bounds of the original rectangle.
- A trait for interpolating between two values.
- A trait representing a shader-like object that can be processed for a duration. The
Shadertrait defines the interface for objects that can apply visual effects to terminal cells over time.
Functions§
- Copies the contents of a source buffer onto a destination buffer with a specified offset.
- Converts a
Bufferto an ANSI-encoded string representation.