#cross-platform #terminal #text-style #term-painter #256 #color

r256

Simple cross-platform color 256 library with text styles for Rust

2 releases

0.1.1 Oct 8, 2021
0.1.0 Oct 8, 2021

#5 in #256

MIT license

7KB
57 lines

r256

Simple cross-platform color 256 library with text styles for Rust.

Example Code

use r256;

fn main() {
    r256::init();
    
    for i in 0..256 {
      let mut color_combines: Vec<r256::Styles> = Vec::new();
      color_combines.push(r256::Styles::FgColor256(i as u8));
      color_combines.push(r256::Styles::Bold);

      r256::println(&color_combines, "r256.");
    }
}

Found a Bug / Error?

If you found a bug or an error, please create a new issue at gitlab repository.

Contributing

If you want to contribute this project:

  • Make sure you add the comments for your codes.
  • Please do not something useless.

Authors

License

This project is distributed under MIT license.

Project status

Under development.

Dependencies

~175KB