Welcome to Simply Colored, the simplest crate in existence for terminal colors. This project aims to provide an easy way to add colors to your terminal output. Whether you're building a command-line tool or just want to make your scripts more visually appealing, Simply Colored has you covered.
- Simple API for adding colors to terminal output.
- Lightweight and easy to integrate.
- Supports various color formats.
- Compatible with multiple platforms.
To install Simply Colored, you can use Cargo, Rust's package manager. Run the following command in your terminal:
cargo add simply-coloredThis will add Simply Colored to your project's dependencies.
Using Simply Colored is straightforward. Hereβs a basic example:
use simply_colored::Color;
fn main() {
println!("{}", Color::Red.paint("This text is red!"));
println!("{}", Color::Green.paint("This text is green!"));
}You can replace Color::Red and Color::Green with other colors as needed.
Here are some more examples to illustrate how you can use Simply Colored in your terminal applications.
use simply_colored::Color;
fn main() {
println!("{}", Color::Blue.paint("Hello, World! This is blue."));
println!("{}", Color::Yellow.paint("This is yellow text."));
}You can also change the background color of your text:
use simply_colored::Color;
fn main() {
println!("{}", Color::Red.on_white().paint("Red text on a white background."));
println!("{}", Color::Green.on_black().paint("Green text on a black background."));
}You can combine foreground and background colors for more complex styles:
use simply_colored::Color;
fn main() {
println!("{}", Color::Cyan.on_magenta().paint("Cyan text on a magenta background."));
}We welcome contributions! If you have suggestions for improvements or want to report a bug, please open an issue or submit a pull request.
- Fork the repository.
- Create a new branch.
- Make your changes.
- Submit a pull request.
Please ensure your code adheres to the existing style and passes all tests.
This project is licensed under the MIT License. See the LICENSE file for details.
For the latest updates and releases, visit the Releases section. You can download the latest version and execute it directly.
To stay updated with new features and improvements, keep an eye on the Releases section.
Simply Colored aims to simplify the process of adding colors to your terminal output. With its straightforward API and lightweight design, you can enhance your terminal applications with minimal effort. We hope you find this crate useful and look forward to your contributions!
Feel free to reach out with any questions or suggestions. Happy coding!