add ugly color generation

This commit is contained in:
Antoine Martin 2022-10-03 17:11:40 +02:00
parent 859b2da101
commit 6ef7baaebc

View file

@ -70,6 +70,10 @@ pub fn pastel_color() -> RgbColor {
HsvColor::new(rand::thread_rng().gen_range(0.0..360.0), 0.5, 0.9).to_rgb()
}
pub fn ugly_color() -> RgbColor {
HsvColor::new(rand::thread_rng().gen_range(0.0..360.0), 1.0, 0.55).to_rgb()
}
#[cfg(test)]
mod tests {
use super::*;