pub fn with_texture_alpha(&self, new_alpha: f32) -> Self {
        match self {
            FillState::None                                     => self.clone(),
            FillState::Color(_)                                 => self.clone(),
            FillState::Texture(texture_id, matrix, repeat, _)   => FillState::Texture(*texture_id, *matrix, *repeat, new_alpha),
            FillState::LinearGradient(_, _, _, _)               => self.clone()
        }
    }
///
/// Updates the fill state with a new texture alpha
///
Updates the fill state with a new texture alpha
Updates the fill state with a new texture alpha
pub fn with_texture_alpha(&self, new_alpha: f32) -> Self {
        match self {
            FillState::None                                     => self.clone(),
            FillState::Color(_)                                 => self.clone(),
            FillState::Texture(texture_id, matrix, repeat, _)   => FillState::Texture(*texture_id, *matrix, *repeat, new_alpha),
            FillState::LinearGradient(_, _, _, _)               => self.clone()
        }
    }
pub fn with_texture_alpha ( & self , new_alpha : f32 ) -> Self { match self { FillState :: None => self . clone ( ) , FillState :: Color ( _ ) => self . clone ( ) , FillState :: Texture ( texture_id , matrix , repeat , _ ) => FillState :: Texture ( * texture_id , * matrix , * repeat , new_alpha ) , FillState :: LinearGradient ( _ , _ , _ , _ ) => self . clone ( ) } }
Updates the fill state with a new texture alpha
Updates the fill state with a new texture alpha
&self
new_alpha
f32