diff options
author | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2024-07-19 15:37:58 +0300 |
commit | a990de90fe41456a23e58bd087d2f107d321f3a1 (patch) | |
tree | 15afc392522a9e85dc3332235e311b7d39352ea9 /vendor/owo-colors/examples/banner.rs | |
parent | 3d48cd3f81164bbfc1a755dc1d4a9a02f98c8ddd (diff) | |
download | fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.tar.xz fparkan-a990de90fe41456a23e58bd087d2f107d321f3a1.zip |
Deleted vendor folder
Diffstat (limited to 'vendor/owo-colors/examples/banner.rs')
-rw-r--r-- | vendor/owo-colors/examples/banner.rs | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/owo-colors/examples/banner.rs b/vendor/owo-colors/examples/banner.rs deleted file mode 100644 index 28f68fc..0000000 --- a/vendor/owo-colors/examples/banner.rs +++ /dev/null @@ -1,36 +0,0 @@ -use owo_colors::{DynColors, OwoColorize}; - -const OWO: &str = r#" - ██████╗ ██╗ ██╗ ██████╗ - ██╔═══██╗██║ ██║██╔═══██╗ - ██║ ██║██║ █╗ ██║██║ ██║ - ██║ ██║██║███╗██║██║ ██║ - ╚██████╔╝╚███╔███╔╝╚██████╔╝ - ╚═════╝ ╚══╝╚══╝ ╚═════╝ - -"#; - -const COLORS: &str = r#" - .o88b. | .d88b. |db | .d88b. |d8888b. |.d8888. - d8P Y8 |.8P Y8. |88 |.8P Y8. |88 `8D |88' YP - 8P |88 88 |88 |88 88 |88oobY' |`8bo. - 8b |88 88 |88 |88 88 |88`8b | `Y8b. - Y8b d8 |`8b d8' |88booo. |`8b d8' |88 `88. |db 8D - `Y88P' | `Y88P' |Y88888P | `Y88P' |88 YD |`8888Y' "#; - -fn main() { - let colors: [DynColors; 6] = [ - "#B80A41", "#4E4BA8", "#6EB122", "#DAAC06", "#00938A", "#E23838", - ] - .map(|color| color.parse().unwrap()); - - println!("\n\n\n\n\n{}", OWO.fg_rgb::<0x2E, 0x31, 0x92>().bold()); - - for line in COLORS.split_inclusive('\n') { - for (text, color) in line.split('|').zip(colors.iter().copied()) { - print!("{}", text.color(color).bold()); - } - } - - println!("\n\n\n\n\n\n"); -} |