From f8148462d2e68acca30a685980a496b662179e81 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Wed, 31 Jul 2024 19:17:11 +0200 Subject: [PATCH] update pastel fade --- src/patterns/pastel_fade.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/patterns/pastel_fade.rs b/src/patterns/pastel_fade.rs index 7f2dcde..cfa6dd2 100644 --- a/src/patterns/pastel_fade.rs +++ b/src/patterns/pastel_fade.rs @@ -18,14 +18,15 @@ impl ColorGrid for PastelFade { fn get(&self, p: &Vector2) -> Rgb { let inputs = self.inputs.read().unwrap().clone(); - let i = ( inputs.t.as_millis() as f32 / (inputs.wheel as f32*inputs.cycle_len.as_millis() as f32) ) % 1.0; + let i = ( 5.0 + 0.7 * inputs.t.as_millis() as f32 / (16.0*inputs.cycle_len.as_millis() as f32) ) % 1.0; Rgb::from_color( &Hsv::>::new( Turns( i ), 0.5, - 1.0 + 0.8 ) ) } } +