Enum widgetry::RewriteColor [−][src]
pub enum RewriteColor { NoOp, Change(Color, Color), ChangeAll(Color), ChangeAlpha(f32), MakeGrayscale, }
A way to transform all colors in a GeomBatch.
Variants
Don’t do anything
Change every instance of the first color to the second
ChangeAll(Color)
Change all colors to the specified value. For this to be interesting, the batch shouldn’t be a solid block of color. This does not modify Color::CLEAR.
ChangeAlpha(f32)
Change the alpha value of all colors to this value.
Convert all colors to greyscale.
Implementations
Trait Implementations
impl Clone for RewriteColor
[src]
impl Clone for RewriteColor
[src]fn clone(&self) -> RewriteColor
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for RewriteColor
[src]
impl<'de> Deserialize<'de> for RewriteColor
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl From<Color> for RewriteColor
[src]
impl From<Color> for RewriteColor
[src]fn from(color: Color) -> RewriteColor
[src]
impl PartialEq<RewriteColor> for RewriteColor
[src]
impl PartialEq<RewriteColor> for RewriteColor
[src]fn eq(&self, other: &RewriteColor) -> bool
[src]
fn ne(&self, other: &RewriteColor) -> bool
[src]
impl Serialize for RewriteColor
[src]
impl Serialize for RewriteColor
[src]impl Copy for RewriteColor
[src]
impl StructuralPartialEq for RewriteColor
[src]
Auto Trait Implementations
impl RefUnwindSafe for RewriteColor
impl Send for RewriteColor
impl Sync for RewriteColor
impl Unpin for RewriteColor
impl UnwindSafe for RewriteColor
Blanket Implementations
impl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,