❖ Information
kolorz is a silly little library for printing kolored text to the terminal
It supports a number of kolorschemes, and it respects CLICOLOR and friends
❖ Installation
Add kolorz to your project's Cargo.toml:
[]
= "1.1.0"
❖ Basic Usage
// print kolored text
use Kolor;
❖ The following kolorschemes are available:
- catppuccin - latte, frappe, macchiato, mocha
- nord
- dracula
- gruvbox - dark, light
- onedark
- tokyonight
- ayu
- palenight
- gogh
- biscuit - dark, light
❖ 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 kolor from above)
- numbered (allows the user to pick a kolor by number)
❖ Kustom Kolorz are also available
// If the hex code is invalid, the text will not be colored
use HexKolorize;
use RGBKolorize;
❖ What's New?
1.1.1 - Update rand