diff --git a/src/capture.rs b/src/capture.rs index 09723eb..d9798eb 100644 --- a/src/capture.rs +++ b/src/capture.rs @@ -53,7 +53,7 @@ impl Sequence { countdown: (3 - elapsed as i32).clamp(1, 3), // The monitor lights the room: hold white illumination until // the clean frame is captured and queued after the countdown. - flash_opacity: 0.75, + flash_opacity: 0.95, awaiting_release: false, } } @@ -230,19 +230,19 @@ mod tests { assert!(!sequence.tick(true, true, start)); assert!(!sequence.tracking()); assert_eq!(sequence.presentation(start).countdown, 3); - assert_eq!(sequence.presentation(start).flash_opacity, 0.75); + assert_eq!(sequence.presentation(start).flash_opacity, 0.95); assert_eq!( sequence .presentation(start + Duration::from_millis(200)) .flash_opacity, - 0.75 + 0.95 ); for (ms, number) in [(999, 3), (1000, 2), (1999, 2), (2000, 1), (2999, 1)] { let now = start + Duration::from_millis(ms); // Lowering the hand must not cancel an already-started countdown. assert!(!sequence.tick(false, false, now)); assert_eq!(sequence.presentation(now).countdown, number); - assert_eq!(sequence.presentation(now).flash_opacity, 0.75); + assert_eq!(sequence.presentation(now).flash_opacity, 0.95); } assert!(sequence.tick(true, true, start + Duration::from_secs(3))); assert!(