pub fn top_and_bottom_color(color: Color) -> (Color, Color) {
    let [h, s, v, a] = color.to_hsva();

    let top_color = Color::hsva(h, 0.5 * s, (1.5 * v + 0.1).min(1.0), a);
    let bottom_color = Color::hsva(h, s, 0.8 * v, a);

    (top_color, bottom_color)
}
/// Calculates the top and bottom color the Timer Component would use for the
/// gradient of the times it is showing.
Calculates the top and bottom color the Timer Component would use for the
gradient of the times it is showing.
Calculates the top and bottom color the Timer Component would use for the gradient of the times it is showing .
pub fn top_and_bottom_color(color: Color) -> (Color, Color) {
    let [h, s, v, a] = color.to_hsva();
    let top_color = Color::hsva(h, 0.5 * s, (1.5 * v + 0.1).min(1.0), a);
    let bottom_color = Color::hsva(h, s, 0.8 * v, a);
    (top_color, bottom_color)
}
pub fn top_and_bottom_color ( color : Color ) -> ( Color , Color ) { let [ h , s , v , a ] = color . to_hsva ( ) ; let top_color = Color :: hsva ( h , 0.5 * s , ( 1.5 * v + 0.1 ) . min ( 1.0 ) , a ) ; let bottom_color = Color :: hsva ( h , s , 0.8 * v , a ) ; ( top_color , bottom_color ) }
Calculates the top and bottom color the Timer Component would use for the
gradient of the times it is showing.
Calculates the top and bottom color the Timer Component would use for the gradient of the times it is showing .
color
Color
color
Color