rename pub function
This commit is contained in:
parent
c9105bf4ce
commit
859b2da101
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue