[−][src]Struct prisma::color_space::named::SRgb
The sRgb color space
Implementations
impl<T> SRgb<T>
[src]
Trait Implementations
impl<T: Clone> Clone for SRgb<T>
[src]
impl<T> ColorSpace<T> for SRgb<T> where
T: Float + FreeChannelScalar + PosNormalChannelScalar,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar,
type Encoding = SrgbEncoding
The standard encoding used by this color space
fn red_primary(&self) -> RgbPrimary<T>
[src]
fn green_primary(&self) -> RgbPrimary<T>
[src]
fn blue_primary(&self) -> RgbPrimary<T>
[src]
fn white_point(&self) -> Xyz<T>
[src]
fn get_xyz_transform(&self) -> Matrix3<T>
[src]
fn get_inverse_xyz_transform(&self) -> Matrix3<T>
[src]
fn encoding(&self) -> Self::Encoding
[src]
fn apply_transform(&self, vec: (T, T, T)) -> (T, T, T)
[src]
impl<T> ConvertFromXyz<T, Alpha<T, Xyz<T>>> for SRgb<T> where
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
type OutputColor = Rgba<T>
The color type converted to.
fn convert_from_xyz_raw(&self, color: &Xyza<T>) -> Rgba<T>
[src]
fn convert_from_xyz(
&self,
color: &In
) -> SpacedColor<T, Self::OutputColor, Self::Encoding, Self>
[src]
&self,
color: &In
) -> SpacedColor<T, Self::OutputColor, Self::Encoding, Self>
fn convert_from_xyz_linear(
&self,
color: &In
) -> SpacedColor<T, Self::OutputColor, LinearEncoding, Self>
[src]
&self,
color: &In
) -> SpacedColor<T, Self::OutputColor, LinearEncoding, Self>
impl<T> ConvertFromXyz<T, Xyz<T>> for SRgb<T> where
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
type OutputColor = Rgb<T>
The color type converted to.
fn convert_from_xyz_raw(&self, color: &Xyz<T>) -> Rgb<T>
[src]
fn convert_from_xyz(
&self,
color: &In
) -> SpacedColor<T, Self::OutputColor, Self::Encoding, Self>
[src]
&self,
color: &In
) -> SpacedColor<T, Self::OutputColor, Self::Encoding, Self>
fn convert_from_xyz_linear(
&self,
color: &In
) -> SpacedColor<T, Self::OutputColor, LinearEncoding, Self>
[src]
&self,
color: &In
) -> SpacedColor<T, Self::OutputColor, LinearEncoding, Self>
impl<T, E> ConvertToXyz<T, Alpha<T, Rgb<T>>, E> for SRgb<T> where
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
E: ColorEncoding,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
E: ColorEncoding,
type OutputColor = Xyza<T>
The type to output. Always some form of Xyz
fn convert_to_xyz(&self, color: &EncodedColor<Rgba<T>, E>) -> Self::OutputColor
[src]
impl<T, E> ConvertToXyz<T, Rgb<T>, E> for SRgb<T> where
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
E: ColorEncoding,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
f64: ChannelFormatCast<T>,
E: ColorEncoding,
type OutputColor = Xyz<T>
The type to output. Always some form of Xyz
fn convert_to_xyz(&self, color: &EncodedColor<Rgb<T>, E>) -> Self::OutputColor
[src]
impl<T: Copy> Copy for SRgb<T>
[src]
impl<T: Debug> Debug for SRgb<T>
[src]
impl<T: Default> Default for SRgb<T>
[src]
impl<T: Eq> Eq for SRgb<T>
[src]
impl<T: PartialEq> PartialEq<SRgb<T>> for SRgb<T>
[src]
impl<T> StructuralEq for SRgb<T>
[src]
impl<T> StructuralPartialEq for SRgb<T>
[src]
impl<T> UnitColorSpace<T> for SRgb<T> where
T: Float + FreeChannelScalar + PosNormalChannelScalar,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar,
fn build_color_space_instance() -> EncodedColorSpace<T, Self::Encoding>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for SRgb<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for SRgb<T> where
T: Send,
T: Send,
impl<T> Sync for SRgb<T> where
T: Sync,
T: Sync,
impl<T> Unpin for SRgb<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for SRgb<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,