https://github.com/a4-tacks/rust-term_lattice
Used to use ANSI output dot matrix drawing boards on terminals that support VT100. Due to the use of in cremental output, it is very fast.
https://github.com/a4-tacks/rust-term_lattice
ansi-term ansi-terminal draw lattice plot rust rust-lang terminal tui tui-rs vt100
Last synced: 16 days ago
JSON representation
Used to use ANSI output dot matrix drawing boards on terminals that support VT100. Due to the use of in cremental output, it is very fast.
- Host: GitHub
- URL: https://github.com/a4-tacks/rust-term_lattice
- Owner: A4-Tacks
- License: mit
- Created: 2023-04-01T03:55:59.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-14T10:53:54.000Z (11 months ago)
- Last Synced: 2025-05-08T04:51:36.551Z (16 days ago)
- Topics: ansi-term, ansi-terminal, draw, lattice, plot, rust, rust-lang, terminal, tui, tui-rs, vt100
- Language: Rust
- Homepage:
- Size: 475 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Used to use ANSI output dot matrix drawing boards on terminals that support VT100. Due to the use of incremental output, it is very fast.
- Supports true color and 256 colors## Info
- crate:# Presentation Effects

Create a new color lattice at a fixed location and use incremental output to quickly refresh.
# Examples
```rust
use term_lattice::{Config,Color,ScreenBuffer};let n = 100;
let mut cfg = Config::new();
cfg.default_color = Color::C256(15);
cfg.chromatic_aberration = 1;
let a = ScreenBuffer::new_from_cfg([n; 2], cfg);for i in 0..n {
a.set([i; 2], Color::C256((i & 0xff) as u8));
println!("\x1b[H{}", a.flush(false));
}
```# Panics
`The number of buffer rows must be an even number. found: {}`
## Examples
```rust
use term_lattice::ScreenBuffer;
ScreenBuffer::new([100, 101]);
```