pub fn from_color_val<C: Into<[f32; 4]>>(rgba: C) -> Self {
        let color = rgba.into();
        let data: [u8; 4] = [
            (color[0] * 255.0) as u8,
            (color[1] * 255.0) as u8,
            (color[2] * 255.0) as u8,
            (color[3] * 255.0) as u8,
        ];

        TextureBuilder::new(data)
    }
/// Creates a new `TextureBuilder` from the given RGBA color value.
Creates a new `TextureBuilder` from the given RGBA color value.
Creates a new ` TextureBuilder ` from the given RGBA color value .
pub fn from_color_val<C: Into<[f32; 4]>>(rgba: C) -> Self {
        let color = rgba.into();
        let data: [u8; 4] = [
            (color[0] * 255.0) as u8,
            (color[1] * 255.0) as u8,
            (color[2] * 255.0) as u8,
            (color[3] * 255.0) as u8,
        ];
        TextureBuilder::new(data)
    }
pub fn from_color_val < C : Into < [ f32 ; 4 ] > > ( rgba : C ) -> Self { let color = rgba . into ( ) ; let data : [ u8 ; 4 ] = [ ( color [ 0 ] * 255.0 ) as u8 , ( color [ 1 ] * 255.0 ) as u8 , ( color [ 2 ] * 255.0 ) as u8 , ( color [ 3 ] * 255.0 ) as u8 , ] ; TextureBuilder :: new ( data ) }
Creates a new `TextureBuilder` from the given RGBA color value.
Creates a new ` TextureBuilder ` from the given RGBA color value .
rgba
C
rgba
C