[−][src]Struct rubidium::AlphaBlendValue
Coefficients for the alpha blending special effect.
For two pixels, "1st target" and "2nd target" the blending (per channel) is as follows:
Intensity = min(31, Intensity_1st * eva + Intensity_2nd * evb)
The eva
and evb
values are specified in increments of 1/16ths, in the
range 0..=16
.
How the target pixels are selected is described in BlendControlValue
.
If alpha blending is selected but there aren't two pixels to target then only the topmost pixel is displayed, and at normal intensity.
Methods
impl AlphaBlendValue
[src]
pub const fn new() -> Self
[src]
#[must_use]pub const fn eva(self) -> u16
[src]
#[must_use]pub const fn with_eva(self, u: u16) -> Self
[src]
pub fn set_eva(&mut self, u: u16)
[src]
#[must_use]pub const fn evb(self) -> u16
[src]
#[must_use]pub const fn with_evb(self, u: u16) -> Self
[src]
pub fn set_evb(&mut self, u: u16)
[src]
Trait Implementations
impl Clone for AlphaBlendValue
[src]
fn clone(&self) -> AlphaBlendValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for AlphaBlendValue
[src]
impl Debug for AlphaBlendValue
[src]
impl Default for AlphaBlendValue
[src]
fn default() -> AlphaBlendValue
[src]
impl Eq for AlphaBlendValue
[src]
impl PartialEq<AlphaBlendValue> for AlphaBlendValue
[src]
fn eq(&self, other: &AlphaBlendValue) -> bool
[src]
fn ne(&self, other: &AlphaBlendValue) -> bool
[src]
impl StructuralEq for AlphaBlendValue
[src]
impl StructuralPartialEq for AlphaBlendValue
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,