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

    geometry::ViewAreaTransformer::new(
        [screen_width, screen_height],
        geometry::Point { x: -1.0, y: -1.0 },
        geometry::Point { x: 1.0, y: 1.0 },
    )
}
/// Constructs a ViewAreaTransformer for converting between a canvas pixel-coordinate and the
/// coordinate system used by Chaos Games.
///
/// The ChaosGame fractals expect a view area that covers between -1.0 and 1.0 on the X axis, as
/// well as -1.0 to 1.0 on the Y axis, with positive values going up and right.
Constructs a ViewAreaTransformer for converting between a canvas pixel-coordinate and the
coordinate system used by Chaos Games.

The ChaosGame fractals expect a view area that covers between -1.0 and 1.0 on the X axis, as
well as -1.0 to 1.0 on the Y axis, with positive values going up and right.
Constructs a ViewAreaTransformer for converting between a canvas pixel - coordinate and the coordinate system used by Chaos Games . The ChaosGame fractals expect a view area that covers between - 1 . 0 and 1 . 0 on the X axis as well as - 1 . 0 to 1 . 0 on the Y axis with positive values going up and right .
fn chaos_game_vat(canvas: &HtmlCanvasElement) -> geometry::ViewAreaTransformer {
    let screen_width = f64::from(canvas.width());
    let screen_height = f64::from(canvas.height());
    geometry::ViewAreaTransformer::new(
        [screen_width, screen_height],
        geometry::Point { x: -1.0, y: -1.0 },
        geometry::Point { x: 1.0, y: 1.0 },
    )
}
fn chaos_game_vat ( canvas : & HtmlCanvasElement ) -> geometry :: ViewAreaTransformer { let screen_width = f64 :: from ( canvas . width ( ) ) ; let screen_height = f64 :: from ( canvas . height ( ) ) ; geometry :: ViewAreaTransformer :: new ( [ screen_width , screen_height ] , geometry :: Point { x : - 1.0 , y : - 1.0 } , geometry :: Point { x : 1.0 , y : 1.0 } , ) }
Constructs a ViewAreaTransformer for converting between a canvas pixel-coordinate and the
coordinate system used by Chaos Games.
Constructs a ViewAreaTransformer for converting between a canvas pixel - coordinate and the coordinate system used by Chaos Games .
canvas
&HtmlCanvasElement