From 6ef7baaebce65e2ebb2cf50bbe65a07eb7cf5a20 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 3 Oct 2022 17:11:40 +0200 Subject: [PATCH] add ugly color generation --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 9132ae2..2898b4d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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::*;