pub fn from_data(width: u32, height: u32, data: Vec<u32>) -> Result<Self, String> {
        Ok(RenderTarget {
            width,
            height,
            data,
        })
    }
/// Create a new image from a boxed slice of colors
Create a new image from a boxed slice of colors
Create a new image from a boxed slice of colors
pub fn from_data(width: u32, height: u32, data: Vec<u32>) -> Result<Self, String> {
        Ok(RenderTarget {
            width,
            height,
            data,
        })
    }
pub fn from_data ( width : u32 , height : u32 , data : Vec < u32 > ) -> Result < Self , String > { Ok ( RenderTarget { width , height , data , } ) }
Create a new image from a boxed slice of colors
Create a new image from a boxed slice of colors
width
u32
height
u32
data
Vec<u32>