Type Alias GrayAlpha

Source
pub type GrayAlpha<T> = AlphaLast<T, Gray<T>>;
Expand description

Combined grayscale and alpha color type.

§Layout

template<typename T>
struct GrayAlpha {
  T gray;
  T alpha;
}

Aliased Type§

struct GrayAlpha<T> { /* private fields */ }

Trait Implementations§

Source§

impl<T> HasGray for GrayAlpha<T>
where T: Copy,

Source§

type Component = T

The type of the gray component.
Source§

fn gray(&self) -> Self::Component

Returns the value of the gray component.
Source§

fn set_gray(&mut self, value: Self::Component)

Sets the gray component to the given value. Read more
Source§

fn new_gray(value: Self::Component) -> Self
where Self: Sized + Default,

Creates a new color with the given gray component. Read more
Source§

fn with_gray(self, value: Self::Component) -> Self
where Self: Sized,

Converts the color into a new type with the gray component set to the given value. Read more