pub trait IntoLinSrgba<S>
where S: Component,
{ // Required method fn into_lin_srgba(self) -> LinSrgba<S>; }
Expand description

Types that may be converted directly into a linear sRGBA color representation.

This is more flexible than Into<LinSrgba<S>> as it also supports converting from different sRGBA encodings that also have different component types.

This trait is important for nannou as the Draw API works with the LinSrgba type as a target for its generic colour type API.

Required Methods§

source

fn into_lin_srgba(self) -> LinSrgba<S>

Convert self into RGBA.

Implementors§

source§

impl<C, S, T> IntoLinSrgba<S> for Alpha<C, T>
where C: IntoLinSrgba<S>, S: Component, T: Component,

source§

impl<S> IntoLinSrgba<S> for Hsl<Srgb, S>
where S: Component + Float,

source§

impl<S> IntoLinSrgba<S> for Hsv<Srgb, S>
where S: Component + Float,

source§

impl<S> IntoLinSrgba<S> for Hwb<Srgb, S>
where S: Component + Float,

source§

impl<S> IntoLinSrgba<S> for Lab<D65, S>
where S: Component + Float,

source§

impl<S> IntoLinSrgba<S> for Lch<D65, S>
where S: Component + Float,

source§

impl<S> IntoLinSrgba<S> for Xyz<D65, S>
where S: Component + Float,

source§

impl<S> IntoLinSrgba<S> for Yxy<D65, S>
where S: Component + Float,

source§

impl<S> IntoLinSrgba<S> for SrgbLuma<S>
where S: Component + Float,

source§

impl<T, S> IntoLinSrgba<S> for LinSrgb<T>
where T: Component, S: Component,

source§

impl<T, S> IntoLinSrgba<S> for Srgb<T>
where T: Component, S: Component + Float,