rename pub function

This commit is contained in:
Antoine Martin 2022-10-03 16:49:05 +02:00
parent c9105bf4ce
commit 859b2da101

View file

@ -66,7 +66,7 @@ impl RgbColor {
} }
} }
pub fn not_so_random_color() -> RgbColor { pub fn pastel_color() -> RgbColor {
HsvColor::new(rand::thread_rng().gen_range(0.0..360.0), 0.5, 0.9).to_rgb() HsvColor::new(rand::thread_rng().gen_range(0.0..360.0), 0.5, 0.9).to_rgb()
} }