Adjust pattern aesthetics
This commit is contained in:
parent
d20aeaa7ea
commit
14330b83f9
1 changed files with 5 additions and 5 deletions
|
@ -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<Pixel = HardwareRgb>) -> ! {
|
|||
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<Pixel = HardwareRgb>) -> ! {
|
|||
}
|
||||
.render_to(lights);
|
||||
|
||||
delay(48_000_000);
|
||||
delay(500_000);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue