logo

Trait nannou::color::IntoLinSrgba[][src]

pub trait IntoLinSrgba<S> where
    S: Component
{ fn into_lin_srgba(self) -> Alpha<Rgb<Linear<Srgb>, S>, 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

Convert self into RGBA.

Implementors