diff --git a/harrogate/src/december_2019.rs b/harrogate/src/december_2019.rs index 4c4d7a8..8b7c55a 100644 --- a/harrogate/src/december_2019.rs +++ b/harrogate/src/december_2019.rs @@ -9,8 +9,8 @@ const BLUE: Rgb = Rgb(0, 0, 200); const PURPLE: Rgb = Rgb(128, 0, 128); const WHITE: Rgb = Rgb(255, 255, 255); -const PULSE_LEN: usize = 50; -const SEGMENT_LEN: usize = 20; +const PULSE_LEN: usize = 150; +const SEGMENT_LEN: usize = 60; const ZOOM: usize = 10; const ZOOM_SEGMENT_LEN: usize = SEGMENT_LEN * ZOOM + ZOOM; @@ -40,9 +40,9 @@ pub fn run(lights: &mut impl Lights) -> ! { let x = x % ZOOM_SEGMENT_LEN; match x { x if x > SEGMENT_LEN * ZOOM => { - blend_steps(WHITE, OFF, ZOOM, x - SEGMENT_LEN * ZOOM) + blend_steps(OFF, WHITE, ZOOM, x - SEGMENT_LEN * ZOOM) } - x => blend_steps(OFF, WHITE, SEGMENT_LEN * ZOOM, x), + x => blend_steps(WHITE, OFF, SEGMENT_LEN * ZOOM, x), } }; let pattern_func = |i| match i { @@ -58,6 +58,6 @@ pub fn run(lights: &mut impl Lights) -> ! { } .render_to(lights); - delay(48_000_000); + delay(500_000); } }