r256 0.1.1

Simple cross-platform color 256 library with text styles for Rust.
Documentation
  • Coverage
  • 31.25%
    5 out of 16 items documented4 out of 5 items with examples
  • Size
  • Source code size: 9.61 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.5 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • aiocat

r256

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

Links

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.