A silly little library for printing kolored text to the terminal
Find a file
2025-02-21 18:37:51 -05:00
src add numbered method 2024-02-11 15:16:34 -05:00
.gitignore Initial release 2023-06-26 22:42:05 -04:00
Cargo.toml bump rust version 2025-02-21 18:37:51 -05:00
LICENSE Initial commit 2023-06-14 20:52:26 -04:00
README.md bump rust version 2025-02-21 18:37:51 -05:00

━━━━━━ ❖ ━━━━━━



❖ Information

kolorz is a silly little library for printing kolored text to the terminal


❖ Installation

Add kolorz to your project's Cargo.toml:

[dependencies]
kolorz = "0.10.0"

❖ Basic Usage

// print kolored text
use kolorz::Kolor;

fn main() {
    let mocha = Kolor::new("catppuccin mocha");
    println!("{}", mocha.red("This is red"));
}

❖ The following kolorschemes are available:


❖ The following kolors are available on all of the kolorschemes:

  • red (0)
  • purple (1)
  • blue (2)
  • green (3)
  • orange (4)
  • yellow (5)
  • text (6)
  • random (picks a random color from above)
  • numbered (allows the user to pick a kolor by number)

❖ Kustom Kolorz are also available

// custom kolorz from hex
use kolorz::HexKolorize;

fn main() {
    println!("{}", "This is peach".kolorize("#fab387"));
}
// custom kolorz from RGB
use kolorz::RGBKolorize;

fn main() {
    println!("{}", "This is red".kolorize((235, 160, 172)));
}

❖ What's New?

0.10.1 - Update Rust edition