Struct framebuffer::pixel::AlphaPixel
source · pub struct AlphaPixel {
pub blue: u8,
pub green: u8,
pub red: u8,
pub alpha: u8,
}
Expand description
An Alpha Pixel is a pixel with an alpha channel
Fields§
§blue: u8
§green: u8
§red: u8
§alpha: u8
Trait Implementations§
source§impl Clone for AlphaPixel
impl Clone for AlphaPixel
source§fn clone(&self) -> AlphaPixel
fn clone(&self) -> AlphaPixel
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AlphaPixel
impl Debug for AlphaPixel
source§impl From<Color> for AlphaPixel
impl From<Color> for AlphaPixel
source§impl Hash for AlphaPixel
impl Hash for AlphaPixel
source§impl Pixel for AlphaPixel
impl Pixel for AlphaPixel
source§fn composite_buffer(src: &[Self], dest: &mut [Self])
fn composite_buffer(src: &[Self], dest: &mut [Self])
Composites the
src
pixel slice to the dest
pixel slice.source§fn weight_blend(origin: Self, other: Self, blend: f32) -> Self
fn weight_blend(origin: Self, other: Self, blend: f32) -> Self
Blend two pixels linearly with weights, as
blend
for origin
and (1-blend
) for other
.impl Copy for AlphaPixel
impl FromBytes for AlphaPixel
Auto Trait Implementations§
impl RefUnwindSafe for AlphaPixel
impl Send for AlphaPixel
impl Sync for AlphaPixel
impl Unpin for AlphaPixel
impl UnwindSafe for AlphaPixel
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more