Compare commits

...

2 commits

Author SHA1 Message Date
f300979b3a version bump and formatting 2023-12-06 11:00:44 -05:00
a792b057cc added demigender, demiboy, and demigirl flags 2023-12-06 10:59:01 -05:00
4 changed files with 44 additions and 1 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "pride"
version = "0.2.2"
version = "0.2.3"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -181,6 +181,7 @@ pub fn aroace(small: bool) -> Flag {
Flag::Lines(lines)
}
fn demi_orientation_render(middle: Bg<Rgb>, bottom: Bg<Rgb>, width: u16, height: u16) -> Vec<String> {
let white = bg(0xFFFFFF);
@ -238,6 +239,7 @@ pub fn demisexual(small: bool) -> Flag {
Flag::Lines(lines)
}
pub fn disability() {
let gray = bg(0x575757);
@ -253,6 +255,7 @@ pub fn disability() {
}
pub fn intersex() -> Flag {
let yellow = bg(0xFFDA00);
let purple = rgb(0x7A00AC);
@ -270,6 +273,7 @@ pub fn intersex() -> Flag {
Flag::Lines(lines)
}
pub fn polyamory(small: bool) -> Flag {
let blue = rgb(0x019FE3);
let magenta = rgb(0xE50051);

View file

@ -53,6 +53,7 @@ pub fn aroace() -> Flag {
Flag::Stripes(vec![orange, yellow, WHITE, blue, navy])
}
pub fn bigender() -> Flag {
let pink = rgb(0xE676A6);
let yellow = rgb(0xF9F04C);
@ -70,6 +71,31 @@ pub fn bisexual() -> Flag {
Flag::Stripes(vec![magenta, magenta, purple, blue, blue])
}
fn demigender_base(color: Color) -> Vec<Color> {
let grey = rgb(0x7F7F7F);
let gray = rgb(0xC3C3C3);
vec![grey, gray, color, WHITE, color, gray, grey]
}
pub fn demiboy() -> Flag {
let blue = rgb(0x7ACBF5);
Flag::Stripes(demigender_base(blue))
}
pub fn demigender() -> Flag {
let yellow = rgb(0xFBFF74);
Flag::Stripes(demigender_base(yellow))
}
pub fn demigirl() -> Flag {
let pink = rgb(0xEAACB8);
Flag::Stripes(demigender_base(pink))
}
pub fn gay() -> Flag {
let green1 = rgb(0x00906D);
let green2 = rgb(0x00D1A7);
@ -111,6 +137,7 @@ pub fn gendervoid() -> Flag {
Flag::Stripes(vec![navy, gray, BLACK, gray, navy])
}
pub fn lesbian() -> Flag {
let red = rgb(0xD62800);
let orange = rgb(0xFF9B56);
@ -120,6 +147,7 @@ pub fn lesbian() -> Flag {
Flag::Stripes(vec![red, orange, WHITE, pink, magenta])
}
pub fn multigender() -> Flag {
let blue = rgb(0x3F47CC);
let ltblue = rgb(0x01A4E9);
@ -136,6 +164,7 @@ pub fn multisexual() -> Flag {
Flag::Stripes(vec![purple, WHITE, blue, pink])
}
pub fn nonbinary() -> Flag {
let yellow = rgb(0xFFF433);
let purple = rgb(0x9B59D0);
@ -143,6 +172,7 @@ pub fn nonbinary() -> Flag {
Flag::Stripes(vec![yellow, WHITE, purple, BLACK])
}
pub fn pansexual() -> Flag {
let magenta = rgb(0xFF1B8D);
let yellow = rgb(0xFFDA00);
@ -159,6 +189,7 @@ pub fn polysexual() -> Flag {
Flag::Stripes(vec![pink, green, blue])
}
pub fn transgender() -> Flag {
let pink = rgb(0x7ACBF5);
let blue = rgb(0xEAACB8);

View file

@ -95,6 +95,14 @@ fn main() {
Some("bisexual" | "bi")
=> flag::bisexual(),
Some("demiboy")
=> flag::demiboy(),
Some("demigender")
=> flag::demigender(),
Some("demigirl")
=> flag::demigirl(),
Some("demiromantic")
=> complex::demiromantic(small),