mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
avoid lighter colors
This commit is contained in:
parent
9a0c9d9459
commit
dc32c2c2b8
1 changed files with 2 additions and 2 deletions
|
|
@ -162,8 +162,8 @@ pub fn random_color () -> Color {
|
||||||
let mut rng = thread_rng();
|
let mut rng = thread_rng();
|
||||||
let color: Okhsl<f32> = Okhsl::new(
|
let color: Okhsl<f32> = Okhsl::new(
|
||||||
rng.gen::<f32>() * 360f32 - 180f32,
|
rng.gen::<f32>() * 360f32 - 180f32,
|
||||||
rng.gen::<f32>() * 0.5 + 0.25,
|
rng.gen::<f32>() * 0.5 + 0.4,
|
||||||
rng.gen::<f32>() * 0.5 + 0.25,
|
rng.gen::<f32>() * 0.5 + 0.15,
|
||||||
);
|
);
|
||||||
let color: Srgb<f32> = Srgb::from_color_unclamped(color);
|
let color: Srgb<f32> = Srgb::from_color_unclamped(color);
|
||||||
Color::Rgb(
|
Color::Rgb(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue