|
@@ -118,9 +118,9 @@ impl From<(u8, u8, u8)> for Rgba {
|
|
impl Rgba {
|
|
impl Rgba {
|
|
pub fn random() -> Self {
|
|
pub fn random() -> Self {
|
|
Self {
|
|
Self {
|
|
- red: thread_rng().gen_range(0..=255),
|
|
|
|
- green: thread_rng().gen_range(0..=255),
|
|
|
|
- blue: thread_rng().gen_range(0..=255),
|
|
|
|
|
|
+ red: thread_rng().gen(),
|
|
|
|
+ green: thread_rng().gen(),
|
|
|
|
+ blue: thread_rng().gen(),
|
|
alpha: 0,
|
|
alpha: 0,
|
|
}
|
|
}
|
|
}
|
|
}
|