From eb42f5fa54ed7420a56d92530b824e954f371898 Mon Sep 17 00:00:00 2001 From: Michael Sippel Date: Wed, 31 Jul 2024 19:18:29 +0200 Subject: [PATCH] full hue range in arctic rain --- src/patterns/arctic_rain.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/patterns/arctic_rain.rs b/src/patterns/arctic_rain.rs index 7339f3c..c665b9e 100644 --- a/src/patterns/arctic_rain.rs +++ b/src/patterns/arctic_rain.rs @@ -26,7 +26,8 @@ impl ColorGrid for ArcticRain { let col1 = Rgb::from_color( &Hsv::>::new( - Turns( 0.65 + 0.3*(inputs.wheel%10) as f32*0.1 ), + // Turns( 0.65 + 0.3*(inputs.wheel%10) as f32*0.1 ), + Turns( (inputs.wheel.abs() % 256) as f32 / 256.0 ), 0.9, 1.0 - ((i + (2.0-p.y/4.0)) * 12.0) % 1.0, // (f32::sin(-p.y+i) * 12.0) % 1.0,