fn new(width: usize, height: usize) -> Image<P> {
        Image{
            width,
            pixels: vec![P::default(); width * height]
        }
    }
/// Create a new image of the given size
Create a new image of the given size
Create a new image of the given size
fn new(width: usize, height: usize) -> Image<P> {
        Image{
            width,
            pixels: vec![P::default(); width * height]
        }
    }
fn new ( width : usize , height : usize ) -> Image < P > { Image { width , pixels : vec ! [ P default ( ) width height ] } }
Create a new image of the given size
Create a new image of the given size
width
usize
height
usize
width
usize
height
usize