1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
use console::style; fn main() { for i in 0..=255 { print!("{:03} ", style(i).color256(i)); if i % 16 == 15 { println!(); } } for i in 0..=255 { print!("{:03} ", style(i).black().on_color256(i)); if i % 16 == 15 { println!(); } } }