Struct framebuffer::pixel::RGBPixel
source · pub struct RGBPixel {
pub blue: u8,
pub green: u8,
pub red: u8,
/* private fields */
}
Expand description
An RGB Pixel is a pixel with no extra channel.
Fields§
§blue: u8
§green: u8
§red: u8
Trait Implementations§
source§impl Pixel for RGBPixel
impl Pixel for RGBPixel
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 blend(self, _other: Self) -> Self
fn blend(self, _other: Self) -> Self
blend with another pixel considering their extra channel.
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 RGBPixel
impl FromBytes for RGBPixel
Auto Trait Implementations§
impl RefUnwindSafe for RGBPixel
impl Send for RGBPixel
impl Sync for RGBPixel
impl Unpin for RGBPixel
impl UnwindSafe for RGBPixel
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