Expand description
All the colors of the web, by name – case-/space-/snake-insensitive.
use pigment::color;
let az = color("Absolute Zero").unwrap();
println!("hex = {}", az.hex()); // #0048BA
println!("rgb = {:?}", az.rgb()); // (0, 72, 186)
println!("{}Absolute Zero{}", az.ansi().fg(), pigment::ansi::Ansi::reset());
Modules§
Structs§
Statics§
Functions§
- color
- Look up a colour by (reasonably forgiving) name.