Enum kolor::details::color::WhitePoint
source · #[repr(u8)]
pub enum WhitePoint {
Show 14 variants
NONE,
A,
B,
C,
E,
D50,
D55,
D60,
D65,
D75,
P3_DCI,
F2,
F7,
F11,
}
Expand description
A WhitePoint defines the color “white” in an RGB color system. White points are derived from an “illuminant” which are defined as some reference lighting condition based on a Spectral Power Distribution.
Variants§
NONE
A
Incandescent/tungsten
B
Old direct sunlight at noon
C
Old daylight
E
Equal energy
D50
ICC profile PCS
D55
Mid-morning daylight
D60
D65
Daylight, sRGB, Adobe-RGB
D75
North sky daylight
P3_DCI
P3-DCI white point, sort of greenish
F2
Cool fluorescent
F7
Daylight fluorescent, D65 simulator
F11
Ultralume 40, Philips TL84
Implementations§
source§impl WhitePoint
impl WhitePoint
pub const ENUM_COUNT: WhitePoint = WhitePoint::F11
pub const fn values(&self) -> &'static [FType; 3]
Trait Implementations§
source§impl Clone for WhitePoint
impl Clone for WhitePoint
source§fn clone(&self) -> WhitePoint
fn clone(&self) -> WhitePoint
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for WhitePoint
impl Debug for WhitePoint
source§impl Hash for WhitePoint
impl Hash for WhitePoint
source§impl PartialEq<WhitePoint> for WhitePoint
impl PartialEq<WhitePoint> for WhitePoint
source§fn eq(&self, other: &WhitePoint) -> bool
fn eq(&self, other: &WhitePoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WhitePoint
impl Eq for WhitePoint
impl StructuralEq for WhitePoint
impl StructuralPartialEq for WhitePoint
Auto Trait Implementations§
impl RefUnwindSafe for WhitePoint
impl Send for WhitePoint
impl Sync for WhitePoint
impl Unpin for WhitePoint
impl UnwindSafe for WhitePoint
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more