Struct palette::encoding::gamma::Gamma[][src]

pub struct Gamma<S, N: Number = F2p2>(_);

Gamma encoding.

Gamma encoding or gamma correction is used to transform the intensity values to either match a non-linear display, like CRT, or to prevent banding among the darker colors. GammaRgb represents a gamma corrected RGB color, where the intensities are encoded using the following power-law expression: V γ (where V is the intensity value an γ is the encoding gamma).

The gamma value is stored as a simple type that represents an f32 constant.

Trait Implementations

impl<S: Copy, N: Copy + Number> Copy for Gamma<S, N>
[src]

impl<S: Clone, N: Clone + Number> Clone for Gamma<S, N>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Debug, N: Debug + Number> Debug for Gamma<S, N>
[src]

Formats the value using the given formatter. Read more

impl<S: PartialEq, N: PartialEq + Number> PartialEq for Gamma<S, N>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<S: Eq, N: Eq + Number> Eq for Gamma<S, N>
[src]

impl<S: RgbSpace, N: Number> RgbStandard for Gamma<S, N>
[src]

The RGB color space.

The transfer function for the color components.

impl<Wp: WhitePoint, N: Number> LumaStandard for Gamma<Wp, N>
[src]

The white point of the color space.

The transfer function for the luminance component.

Auto Trait Implementations

impl<S, N> Send for Gamma<S, N> where
    N: Send,
    S: Send

impl<S, N> Sync for Gamma<S, N> where
    N: Sync,
    S: Sync