added gilbert baker and philadelphia rainbow flags

This commit is contained in:
Valerie Wolfe 2023-04-13 16:19:41 -04:00
parent 5e56206086
commit 0070f1e6cf
2 changed files with 51 additions and 0 deletions

View file

@ -194,3 +194,46 @@ pub fn pansexual(small: bool) {
} else { draw(&[magenta, yellow, cyan]); } } else { draw(&[magenta, yellow, cyan]); }
} }
// misc variants
pub fn gilbert(small: bool) {
let pink = color::Fg(color::Rgb(0xFF, 0x69, 0xB4));
let red = color::Fg(color::Rgb(0xE5, 0x00, 0x00));
let orange = color::Fg(color::Rgb(0xFF, 0x8D, 0x00));
let yellow = color::Fg(color::Rgb(0xFF, 0xEE, 0x00));
let green = color::Fg(color::Rgb(0x02, 0x81, 0x21));
let cyan = color::Fg(color::Rgb(0x00, 0xC0, 0xC0));
let blue = color::Fg(color::Rgb(0x00, 0x4C, 0xFF));
let purple = color::Fg(color::Rgb(0x77, 0x00, 0x88));
if small {
let width = 24;
println!(
"{pink}{stripe}\n{red}{stripe}\n{orange}{stripe}\n{yellow}{stripe}\n{green}{stripe}\n{cyan}{stripe}\n{blue}{stripe}\n{purple}{stripe}{reset}",
reset = color::Fg(color::Reset),
stripe = BLOCK.repeat(24)
);
} else { draw(&[pink, red, orange, yellow, green, cyan, blue, purple]); }
}
pub fn philadelphia(small: bool) {
let black = color::Fg(color::Rgb(0x00, 0x00, 0x00));
let brown = color::Fg(color::Rgb(0x78, 0x4F, 0x17));
let red = color::Fg(color::Rgb(0xE5, 0x00, 0x00));
let orange = color::Fg(color::Rgb(0xFF, 0x8D, 0x00));
let yellow = color::Fg(color::Rgb(0xFF, 0xEE, 0x00));
let green = color::Fg(color::Rgb(0x02, 0x81, 0x21));
let blue = color::Fg(color::Rgb(0x00, 0x4C, 0xFF));
let purple = color::Fg(color::Rgb(0x77, 0x00, 0x88));
if small {
let width = 24;
println!(
"{black}{stripe}\n{brown}{stripe}\n{red}{stripe}\n{orange}{stripe}\n{yellow}{stripe}\n{green}{stripe}\n{blue}{stripe}\n{purple}{stripe}{reset}",
reset = color::Fg(color::Reset),
stripe = BLOCK.repeat(width)
);
} else { draw(&[black, brown, red, orange, yellow, green, blue, purple]); }
}

View file

@ -55,6 +55,14 @@ fn main() {
Some("pan") | Some("pan") |
Some("pansexual") => flag::pansexual(small), Some("pansexual") => flag::pansexual(small),
Some("sex-and-magic")|
Some("baker") |
Some("gilbert") => flag::gilbert(small),
Some("philly") |
Some("philadelphia")=> flag::philadelphia(small),
_ => { help_text(); exit(1) } _ => { help_text(); exit(1) }
} }
} }