Crate tachyonfx

source ·
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§

  • CellIterator provides an iterator over terminal cells.
  • A utility struct for mapping and transforming colors based on a given alpha value. The ColorMapper caches the original color and alpha value to avoid redundant transformations.
  • Represents an effect that can be applied to terminal cells. The Effect struct 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 EffectTimer controls the duration and progress of an effect, allowing it to be reversed, reset, and processed over time.

Enums§

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 Shader trait 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 Buffer to an ANSI-encoded string representation.