[][src]Struct rubidium::AlphaBlendValue

#[repr(transparent)]pub struct 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]

impl Copy for AlphaBlendValue[src]

impl Debug for AlphaBlendValue[src]

impl Default for AlphaBlendValue[src]

impl Eq for AlphaBlendValue[src]

impl PartialEq<AlphaBlendValue> for AlphaBlendValue[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.