Registry / utility / ansi-colours

ansi-colours

JSON →
library1.2.3rscratesunverified

true-colour ↔ ANSI terminal palette converter

# Cargo.toml [dependencies] ansi_colours = "1.2.3"
INSTALL
IMPORT
SIG · ANSI-COLOURS
A
ansi-colours
utilityrustv1.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rgb_to_ansi256
use ansi_colours::rgb_to_ansi256;

Convert RGB to ANSI 256-color palette

use ansi_colours::rgb_to_ansi256; fn main() { let ansi = rgb_to_ansi256(100, 150, 200); println!("ANSI color: {}", ansi); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
18
OpenAI (training)
2
Amazon
1
Resources
ansi-colours — cargo add ansi-colours · libregistry