fn draw_second_decoration<D>(
    target: &mut D,
    clock_face: &Circle,
    angle: f32,
    length_delta: i32,
) -> Result<(), D::Error>
where
    D: DrawTarget<Color = Rgb565>,
{
    let decoration_position = polar(clock_face, angle, length_delta);

    let decoration_style = PrimitiveStyleBuilder::new()
        .fill_color(Rgb565::BLACK)
        .stroke_color(Rgb565::WHITE)
        .stroke_width(1)
        .build();

    // Draw a fancy circle near the end of the second hand.
    Circle::with_center(decoration_position, 11)
        .into_styled(decoration_style)
        .draw(target)
}
/// Draws a decorative circle on the second hand.
Draws a decorative circle on the second hand.
Draws a decorative circle on the second hand .
fn draw_second_decoration<D>(
    target: &mut D,
    clock_face: &Circle,
    angle: f32,
    length_delta: i32,
) -> Result<(), D::Error>
where
    D: DrawTarget<Color = Rgb565>,
{
    let decoration_position = polar(clock_face, angle, length_delta);
    let decoration_style = PrimitiveStyleBuilder::new()
        .fill_color(Rgb565::BLACK)
        .stroke_color(Rgb565::WHITE)
        .stroke_width(1)
        .build();
    // Draw a fancy circle near the end of the second hand.
    Circle::with_center(decoration_position, 11)
        .into_styled(decoration_style)
        .draw(target)
}
fn draw_second_decoration < D > ( target : & mut D , clock_face : & Circle , angle : f32 , length_delta : i32 , ) -> Result < ( ) , D :: Error > where D : DrawTarget < Color = Rgb565 > , { let decoration_position = polar ( clock_face , angle , length_delta ) ; let decoration_style = PrimitiveStyleBuilder :: new ( ) . fill_color ( Rgb565 :: BLACK ) . stroke_color ( Rgb565 :: WHITE ) . stroke_width ( 1 ) . build ( ) ; // Draw a fancy circle near the end of the second hand. Circle :: with_center ( decoration_position , 11 ) . into_styled ( decoration_style ) . draw ( target ) }
Draws a decorative circle on the second hand.
Draws a decorative circle on the second hand .
target
&mut D
clock_face
&Circle
angle
f32
length_delta
i32