Struct rasterize::LinColor[][src]

pub struct LinColor(_);

Alpha premultiplied RGBA color in the liniar color space (no gamma correction)

Implementations

impl LinColor[src]

pub const fn new(r: f32, g: f32, b: f32, a: f32) -> Self[src]

pub const fn red(&self) -> f32[src]

pub const fn green(&self) -> f32[src]

pub const fn blue(&self) -> f32[src]

pub const fn alpha(&self) -> f32[src]

pub fn lerp(self, other: LinColor, t: Scalar) -> Self[src]

Trait Implementations

impl Add<LinColor> for LinColor[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for LinColor[src]

impl Color for LinColor[src]

impl Copy for LinColor[src]

impl Debug for LinColor[src]

impl Default for LinColor[src]

impl From<ColorU8> for LinColor[src]

impl From<LinColor> for ColorU8[src]

impl FromStr for LinColor[src]

type Err = ColorError

The associated error which can be returned from parsing.

impl Mul<f32> for LinColor[src]

type Output = Self

The resulting type after applying the * operator.

impl Paint for LinColor[src]

impl PartialEq<LinColor> for LinColor[src]

impl StructuralPartialEq for LinColor[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.