[−][src]Struct gba_hal::data::BlendBrightness
Controls brightness blend.
This is x/16, but values above 16 are capped at 16/16.
For each color channel of an affected 1st target pixel the final channel value is as follows:
- Increase:
I = I_1st + (31 - I_1st) * EVY
- Decrease:
I = I_1st - I_1st * EVY
If the blend mode isn't set to BrightnessIncrease
or
BrightnessDecrease
this register has no effect at all.
Methods
impl BlendBrightness
[src]
impl BlendBrightness
[src]
pub const EVY_COEFFICIENT_MASK: u16
[src]
pub const fn evy_coefficient(self) -> u16
[src]
pub const fn with_evy_coefficient(self, evy_coefficient: u16) -> Self
[src]
Trait Implementations
impl PartialEq<BlendBrightness> for BlendBrightness
[src]
fn eq(&self, other: &BlendBrightness) -> bool
[src]
fn ne(&self, other: &BlendBrightness) -> bool
[src]
impl Eq for BlendBrightness
[src]
impl Copy for BlendBrightness
[src]
impl Debug for BlendBrightness
[src]
impl Clone for BlendBrightness
[src]
fn clone(&self) -> BlendBrightness
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for BlendBrightness
[src]
fn default() -> BlendBrightness
[src]
Auto Trait Implementations
impl Send for BlendBrightness
impl Sync for BlendBrightness
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,