fn pixel_to_coordinate(&self, x: f64, y: f64) -> [f64; 2] {
        let canvas = self.ctx.canvas().unwrap();
        let pos_point = chaos_game_vat(&canvas).map_pixel_to_point([x, y]);
        pos_point.into()
    }
/// Translates a pixel-coordinate on the Canvas into the coordinate system used by a chaos
/// game.
///
/// See chaos_game_vat for more information on the coordinate system for chaos games.
Translates a pixel-coordinate on the Canvas into the coordinate system used by a chaos
game.

See chaos_game_vat for more information on the coordinate system for chaos games.
Translates a pixel - coordinate on the Canvas into the coordinate system used by a chaos game . See chaos_game_vat for more information on the coordinate system for chaos games .
fn pixel_to_coordinate(&self, x: f64, y: f64) -> [f64; 2] {
        let canvas = self.ctx.canvas().unwrap();
        let pos_point = chaos_game_vat(&canvas).map_pixel_to_point([x, y]);
        pos_point.into()
    }
fn pixel_to_coordinate ( & self , x : f64 , y : f64 ) -> [ f64 ; 2 ] { let canvas = self . ctx . canvas ( ) . unwrap ( ) ; let pos_point = chaos_game_vat ( & canvas ) . map_pixel_to_point ( [ x , y ] ) ; pos_point . into ( ) }
Translates a pixel-coordinate on the Canvas into the coordinate system used by a chaos
game.
Translates a pixel - coordinate on the Canvas into the coordinate system used by a chaos game .
&self
x
f64
y
f64