|
@ -31,7 +31,7 @@ impl Builtin for Blahaj { |
|
|
} else {
|
|
|
} else {
|
|
|
if args[0].eq("-t") {
|
|
|
if args[0].eq("-t") {
|
|
|
trans_flag(blahaj);
|
|
|
trans_flag(blahaj);
|
|
|
}else if args[0].eq("-p"){
|
|
|
|
|
|
|
|
|
} else if args[0].eq("-p") {
|
|
|
pride_flag(blahaj);
|
|
|
pride_flag(blahaj);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@ -42,31 +42,30 @@ impl Builtin for Blahaj { |
|
|
fn trans_flag(blahaj: &str) {
|
|
|
fn trans_flag(blahaj: &str) {
|
|
|
for (index, lines) in blahaj.lines().enumerate() {
|
|
|
for (index, lines) in blahaj.lines().enumerate() {
|
|
|
if index % 4 == 0 {
|
|
|
if index % 4 == 0 {
|
|
|
println!("{}", lines.truecolor(91, 206, 250));
|
|
|
|
|
|
|
|
|
println!("{}", lines.truecolor(91, 206, 250));//light blue
|
|
|
} else if index % 2 == 0 {
|
|
|
} else if index % 2 == 0 {
|
|
|
println!("{}", lines.white());
|
|
|
println!("{}", lines.white());
|
|
|
} else { println!("{}", lines.truecolor(245, 169, 184)); }
|
|
|
|
|
|
|
|
|
} else { println!("{}", lines.truecolor(245, 169, 184)); }//pink
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
fn pride_flag(blahaj: &str) {
|
|
|
fn pride_flag(blahaj: &str) {
|
|
|
let mut index =1;
|
|
|
|
|
|
|
|
|
let mut index = 1;
|
|
|
for lines in blahaj.lines() {
|
|
|
for lines in blahaj.lines() {
|
|
|
|
|
|
|
|
|
if index ==6 {
|
|
|
|
|
|
println!("{}",lines.truecolor(36,84,142));
|
|
|
|
|
|
index=0;
|
|
|
|
|
|
}else if index==5 {
|
|
|
|
|
|
println!("{}",lines.truecolor(0,178,38));
|
|
|
|
|
|
}else if index== 4 {
|
|
|
|
|
|
println!("{}", lines.truecolor(255, 237, 0));
|
|
|
|
|
|
}else if index == 3 {
|
|
|
|
|
|
println!("{}", lines.truecolor(255, 140, 0));
|
|
|
|
|
|
}else if index == 2 {
|
|
|
|
|
|
println!("{}",lines.truecolor(228,3,3));
|
|
|
|
|
|
}else {
|
|
|
|
|
|
println!("{}",lines.truecolor(115,41,130));
|
|
|
|
|
|
|
|
|
if index == 6 {
|
|
|
|
|
|
println!("{}", lines.truecolor(36, 84, 142));//blue
|
|
|
|
|
|
index = 0;
|
|
|
|
|
|
} else if index == 5 {
|
|
|
|
|
|
println!("{}", lines.truecolor(0, 178, 38));//green
|
|
|
|
|
|
} else if index == 4 {
|
|
|
|
|
|
println!("{}", lines.truecolor(255, 237, 0));//yellow
|
|
|
|
|
|
} else if index == 3 {
|
|
|
|
|
|
println!("{}", lines.truecolor(255, 140, 0));//orange
|
|
|
|
|
|
} else if index == 2 {
|
|
|
|
|
|
println!("{}", lines.truecolor(228, 3, 3));//red
|
|
|
|
|
|
} else {
|
|
|
|
|
|
println!("{}", lines.truecolor(115, 41, 130));//violet
|
|
|
}
|
|
|
}
|
|
|
index = index +1;
|
|
|
|
|
|
|
|
|
index = index + 1;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|