pub struct Rec2020 {
pub r: f64,
pub g: f64,
pub b: f64,
pub alpha: Option<f64>,
}Expand description
Rec. 2020 color with channels in the nominal 0..1 range.
Fields§
§r: f64Red channel (gamma-encoded).
g: f64Green channel (gamma-encoded).
b: f64Blue channel (gamma-encoded).
alpha: Option<f64>Optional alpha in 0..1.
Trait Implementations§
Source§impl ColorSpace for Rec2020
impl ColorSpace for Rec2020
Source§const MODE: &'static str = "rec2020"
const MODE: &'static str = "rec2020"
Stable identifier for this space (matches culori’s
mode string).Source§const CHANNELS: &'static [&'static str]
const CHANNELS: &'static [&'static str]
The space’s natural channels in canonical order. Alpha is excluded:
it is a universal meta-channel accessed via
alpha
rather than a channel of any particular space.Source§fn with_alpha(self, alpha: Option<f64>) -> Self
fn with_alpha(self, alpha: Option<f64>) -> Self
Returns a copy of
self with the given alpha.Source§fn from_xyz65(xyz: Xyz65) -> Self
fn from_xyz65(xyz: Xyz65) -> Self
Construct a color of this space from the XYZ D65 hub space.
impl Copy for Rec2020
impl StructuralPartialEq for Rec2020
Auto Trait Implementations§
impl Freeze for Rec2020
impl RefUnwindSafe for Rec2020
impl Send for Rec2020
impl Sync for Rec2020
impl Unpin for Rec2020
impl UnsafeUnpin for Rec2020
impl UnwindSafe for Rec2020
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