Enum quicksilver::graphics::BlendMode [−][src]
#[repr(u32)]pub enum BlendMode { Additive, Subtractive, Minimum, Maximum, }
The way the colors are blended when drawing on top of other color
Blend modes only apply to RGB values
Variants
Additive
Add the color being drawn onto and the color being drawn
Adding red and blue will produce purple for example
Subtractive
Subtract the color being drawn onto and the color being drawn
Subtracting red from purple will produce blue for example
Minimum
Take the minimum of each component of the color
Purple and red will produce red, blue and red will produce black
Maximum
Take the maximum of each component of the color
Purple and red will produce purple, blue and red will produce purple
Trait Implementations
impl Clone for BlendMode
[src]
impl Clone for BlendMode
fn clone(&self) -> BlendMode
[src]
fn clone(&self) -> BlendMode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for BlendMode
[src]
impl Copy for BlendMode
impl Debug for BlendMode
[src]
impl Debug for BlendMode
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for BlendMode
[src]
impl Hash for BlendMode
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for BlendMode
[src]
impl Eq for BlendMode
impl PartialEq for BlendMode
[src]
impl PartialEq for BlendMode