Enum gamma_lut::LuminanceColorSpace
[−]
[src]
pub enum LuminanceColorSpace { Linear, Gamma(f32), Srgb, }
Color space responsible for converting between lumas and luminances.
Variants
Linear
Linear space - no conversion involved.
Gamma(f32)
Simple gamma space - uses the luminance ^ gamma
function.
Srgb
Srgb space.
Methods
impl LuminanceColorSpace
[src]
fn new(gamma: f32) -> LuminanceColorSpace
[src]
fn to_luma(&self, luminance: f32) -> f32
[src]
fn from_luma(&self, luma: f32) -> f32
[src]
Trait Implementations
impl Clone for LuminanceColorSpace
[src]
fn clone(&self) -> LuminanceColorSpace
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for LuminanceColorSpace
[src]
impl Debug for LuminanceColorSpace
[src]
impl PartialEq for LuminanceColorSpace
[src]
fn eq(&self, __arg_0: &LuminanceColorSpace) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &LuminanceColorSpace) -> bool
[src]
This method tests for !=
.