Compare commits
No commits in common. "f300979b3ab0ee41dbd94b1f4dc28bb55682c48c" and "7df02965aa0b3e86cdd6527ee103b2f528b0666c" have entirely different histories.
f300979b3a
...
7df02965aa
4 changed files with 1 additions and 44 deletions
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "pride"
|
name = "pride"
|
||||||
version = "0.2.3"
|
version = "0.2.2"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
|
@ -181,7 +181,6 @@ pub fn aroace(small: bool) -> Flag {
|
||||||
Flag::Lines(lines)
|
Flag::Lines(lines)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
fn demi_orientation_render(middle: Bg<Rgb>, bottom: Bg<Rgb>, width: u16, height: u16) -> Vec<String> {
|
fn demi_orientation_render(middle: Bg<Rgb>, bottom: Bg<Rgb>, width: u16, height: u16) -> Vec<String> {
|
||||||
let white = bg(0xFFFFFF);
|
let white = bg(0xFFFFFF);
|
||||||
|
|
||||||
|
@ -239,7 +238,6 @@ pub fn demisexual(small: bool) -> Flag {
|
||||||
Flag::Lines(lines)
|
Flag::Lines(lines)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn disability() {
|
pub fn disability() {
|
||||||
let gray = bg(0x575757);
|
let gray = bg(0x575757);
|
||||||
|
|
||||||
|
@ -255,7 +253,6 @@ pub fn disability() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn intersex() -> Flag {
|
pub fn intersex() -> Flag {
|
||||||
let yellow = bg(0xFFDA00);
|
let yellow = bg(0xFFDA00);
|
||||||
let purple = rgb(0x7A00AC);
|
let purple = rgb(0x7A00AC);
|
||||||
|
@ -273,7 +270,6 @@ pub fn intersex() -> Flag {
|
||||||
Flag::Lines(lines)
|
Flag::Lines(lines)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn polyamory(small: bool) -> Flag {
|
pub fn polyamory(small: bool) -> Flag {
|
||||||
let blue = rgb(0x019FE3);
|
let blue = rgb(0x019FE3);
|
||||||
let magenta = rgb(0xE50051);
|
let magenta = rgb(0xE50051);
|
||||||
|
|
31
src/flag.rs
31
src/flag.rs
|
@ -53,7 +53,6 @@ pub fn aroace() -> Flag {
|
||||||
Flag::Stripes(vec![orange, yellow, WHITE, blue, navy])
|
Flag::Stripes(vec![orange, yellow, WHITE, blue, navy])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn bigender() -> Flag {
|
pub fn bigender() -> Flag {
|
||||||
let pink = rgb(0xE676A6);
|
let pink = rgb(0xE676A6);
|
||||||
let yellow = rgb(0xF9F04C);
|
let yellow = rgb(0xF9F04C);
|
||||||
|
@ -71,31 +70,6 @@ pub fn bisexual() -> Flag {
|
||||||
Flag::Stripes(vec![magenta, magenta, purple, blue, blue])
|
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 {
|
pub fn gay() -> Flag {
|
||||||
let green1 = rgb(0x00906D);
|
let green1 = rgb(0x00906D);
|
||||||
let green2 = rgb(0x00D1A7);
|
let green2 = rgb(0x00D1A7);
|
||||||
|
@ -137,7 +111,6 @@ pub fn gendervoid() -> Flag {
|
||||||
Flag::Stripes(vec![navy, gray, BLACK, gray, navy])
|
Flag::Stripes(vec![navy, gray, BLACK, gray, navy])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn lesbian() -> Flag {
|
pub fn lesbian() -> Flag {
|
||||||
let red = rgb(0xD62800);
|
let red = rgb(0xD62800);
|
||||||
let orange = rgb(0xFF9B56);
|
let orange = rgb(0xFF9B56);
|
||||||
|
@ -147,7 +120,6 @@ pub fn lesbian() -> Flag {
|
||||||
Flag::Stripes(vec![red, orange, WHITE, pink, magenta])
|
Flag::Stripes(vec![red, orange, WHITE, pink, magenta])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn multigender() -> Flag {
|
pub fn multigender() -> Flag {
|
||||||
let blue = rgb(0x3F47CC);
|
let blue = rgb(0x3F47CC);
|
||||||
let ltblue = rgb(0x01A4E9);
|
let ltblue = rgb(0x01A4E9);
|
||||||
|
@ -164,7 +136,6 @@ pub fn multisexual() -> Flag {
|
||||||
Flag::Stripes(vec![purple, WHITE, blue, pink])
|
Flag::Stripes(vec![purple, WHITE, blue, pink])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn nonbinary() -> Flag {
|
pub fn nonbinary() -> Flag {
|
||||||
let yellow = rgb(0xFFF433);
|
let yellow = rgb(0xFFF433);
|
||||||
let purple = rgb(0x9B59D0);
|
let purple = rgb(0x9B59D0);
|
||||||
|
@ -172,7 +143,6 @@ pub fn nonbinary() -> Flag {
|
||||||
Flag::Stripes(vec![yellow, WHITE, purple, BLACK])
|
Flag::Stripes(vec![yellow, WHITE, purple, BLACK])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn pansexual() -> Flag {
|
pub fn pansexual() -> Flag {
|
||||||
let magenta = rgb(0xFF1B8D);
|
let magenta = rgb(0xFF1B8D);
|
||||||
let yellow = rgb(0xFFDA00);
|
let yellow = rgb(0xFFDA00);
|
||||||
|
@ -189,7 +159,6 @@ pub fn polysexual() -> Flag {
|
||||||
Flag::Stripes(vec![pink, green, blue])
|
Flag::Stripes(vec![pink, green, blue])
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub fn transgender() -> Flag {
|
pub fn transgender() -> Flag {
|
||||||
let pink = rgb(0x7ACBF5);
|
let pink = rgb(0x7ACBF5);
|
||||||
let blue = rgb(0xEAACB8);
|
let blue = rgb(0xEAACB8);
|
||||||
|
|
|
@ -95,14 +95,6 @@ fn main() {
|
||||||
Some("bisexual" | "bi")
|
Some("bisexual" | "bi")
|
||||||
=> flag::bisexual(),
|
=> flag::bisexual(),
|
||||||
|
|
||||||
|
|
||||||
Some("demiboy")
|
|
||||||
=> flag::demiboy(),
|
|
||||||
Some("demigender")
|
|
||||||
=> flag::demigender(),
|
|
||||||
Some("demigirl")
|
|
||||||
=> flag::demigirl(),
|
|
||||||
|
|
||||||
Some("demiromantic")
|
Some("demiromantic")
|
||||||
=> complex::demiromantic(small),
|
=> complex::demiromantic(small),
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue