add ugly color generation
This commit is contained in:
parent
859b2da101
commit
6ef7baaebc
|
@ -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::*;
|
||||
|
|
Loading…
Reference in a new issue