fn draw_dot(context: graphics::context::Context, gfx: &mut piston_window::G2d, point: Point) {
    let view_size = context.get_view_size();
    let screen_width = view_size[0];
    let screen_height = view_size[1];

    let chaos_vat = ViewAreaTransformer::new(
        [screen_width, screen_height],
        Point { x: -1.0, y: -1.0 },
        Point { x: 1.0, y: 1.0 },
    );
    let screen_point = chaos_vat.map_point_to_pixel(point);

    piston_window::Rectangle::new(color::BLACK_F32.0).draw(
        [screen_point[0], screen_point[1], 1.0, 1.0],
        &graphics::draw_state::DrawState::default(),
        context.transform,
        gfx,
    );
}
/// Draw a dot at the given point. (0.0,0.0) is the center of the screen, (1.0,1.0) is near the top
/// right, and (-1.0,-1.0) is near the bottom left.
Draw a dot at the given point.
Draw a dot at the given point .
fn draw_dot(context: graphics::context::Context, gfx: &mut piston_window::G2d, point: Point) {
    let view_size = context.get_view_size();
    let screen_width = view_size[0];
    let screen_height = view_size[1];
    let chaos_vat = ViewAreaTransformer::new(
        [screen_width, screen_height],
        Point { x: -1.0, y: -1.0 },
        Point { x: 1.0, y: 1.0 },
    );
    let screen_point = chaos_vat.map_point_to_pixel(point);
    piston_window::Rectangle::new(color::BLACK_F32.0).draw(
        [screen_point[0], screen_point[1], 1.0, 1.0],
        &graphics::draw_state::DrawState::default(),
        context.transform,
        gfx,
    );
}
fn draw_dot ( context : graphics :: context :: Context , gfx : & mut piston_window :: G2d , point : Point ) { let view_size = context . get_view_size ( ) ; let screen_width = view_size [ 0 ] ; let screen_height = view_size [ 1 ] ; let chaos_vat = ViewAreaTransformer :: new ( [ screen_width , screen_height ] , Point { x : - 1.0 , y : - 1.0 } , Point { x : 1.0 , y : 1.0 } , ) ; let screen_point = chaos_vat . map_point_to_pixel ( point ) ; piston_window :: Rectangle :: new ( color :: BLACK_F32 . 0 ) . draw ( [ screen_point [ 0 ] , screen_point [ 1 ] , 1.0 , 1.0 ] , & graphics :: draw_state :: DrawState :: default ( ) , context . transform , gfx , ) ; }
Draw a dot at the given point.
Draw a dot at the given point .
context
graphics::context::Context
gfx
&mut piston_window::G2d
point
Point