fn turtle_vat(canvas: &HtmlCanvasElement) -> ViewAreaTransformer {
    let screen_width = f64::from(canvas.width());
    let screen_height = f64::from(canvas.height());

    ViewAreaTransformer::new(
        [screen_width, screen_height],
        Point { x: -0.5, y: -0.75 },
        Point { x: 1.5, y: 0.75 },
    )
}
/// Constructs a ViewAreaTransformer for converting between a canvas pixel-coordinate and the
/// coordinate system used by Turtle curves.
///
/// The Turtle curves expect a view area that has positive values going up and to the right, and
/// that center on both (0.0, 0.0) and (1.0, 0.0). to achieve this, the we need a view area from
/// -0.5 to 1.5 on the X axis, and -0.75 and 0.75 on the Y axis.
Constructs a ViewAreaTransformer for converting between a canvas pixel-coordinate and the
coordinate system used by Turtle curves.

The Turtle curves expect a view area that has positive values going up and to the right, and
that center on both (0.0, 0.0) and (1.0, 0.0). to achieve this, the we need a view area from
0.5 to 1.5 on the X axis, and -0.75 and 0.75 on the Y axis.
Constructs a ViewAreaTransformer for converting between a canvas pixel - coordinate and the coordinate system used by Turtle curves . The Turtle curves expect a view area that has positive values going up and to the right and that center on both ( 0 . 0 0 . 0 ) and ( 1 . 0 0 . 0 ) . to achieve this the we need a view area from 0 . 5 to 1 . 5 on the X axis and - 0 . 75 and 0 . 75 on the Y axis .
fn turtle_vat(canvas: &HtmlCanvasElement) -> ViewAreaTransformer {
    let screen_width = f64::from(canvas.width());
    let screen_height = f64::from(canvas.height());
    ViewAreaTransformer::new(
        [screen_width, screen_height],
        Point { x: -0.5, y: -0.75 },
        Point { x: 1.5, y: 0.75 },
    )
}
fn turtle_vat ( canvas : & HtmlCanvasElement ) -> ViewAreaTransformer { let screen_width = f64 :: from ( canvas . width ( ) ) ; let screen_height = f64 :: from ( canvas . height ( ) ) ; ViewAreaTransformer :: new ( [ screen_width , screen_height ] , Point { x : - 0.5 , y : - 0.75 } , Point { x : 1.5 , y : 0.75 } , ) }
Constructs a ViewAreaTransformer for converting between a canvas pixel-coordinate and the
coordinate system used by Turtle curves.
Constructs a ViewAreaTransformer for converting between a canvas pixel - coordinate and the coordinate system used by Turtle curves .
canvas
&HtmlCanvasElement