#[repr(C)]pub struct LAlphaBeta {
pub l: f32,
pub alpha: f32,
pub beta: f32,
}
Expand description
Represents l-alpha-beta (lαβ) colorspace
Fields§
§l: f32
§alpha: f32
§beta: f32
Implementations§
Source§impl LAlphaBeta
impl LAlphaBeta
Sourcepub fn from_rgb(rgb: Rgb<u8>, transfer_function: TransferFunction) -> LAlphaBeta
pub fn from_rgb(rgb: Rgb<u8>, transfer_function: TransferFunction) -> LAlphaBeta
Converts RGB to l-alpha-beta
Sourcepub fn from_linear_rgb(rgb: Rgb<f32>, matrix: &[[f32; 3]; 3]) -> LAlphaBeta
pub fn from_linear_rgb(rgb: Rgb<f32>, matrix: &[[f32; 3]; 3]) -> LAlphaBeta
Converts linear Rgb to LAlphaBeta using Xyz matrix
Sourcepub fn from_xyz(xyz: Xyz) -> LAlphaBeta
pub fn from_xyz(xyz: Xyz) -> LAlphaBeta
Converts XYZ to l-alpha-beta
Trait Implementations§
Source§impl Clone for LAlphaBeta
impl Clone for LAlphaBeta
Source§fn clone(&self) -> LAlphaBeta
fn clone(&self) -> LAlphaBeta
Returns a duplicate 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 LAlphaBeta
impl Debug for LAlphaBeta
Source§impl Index<usize> for LAlphaBeta
impl Index<usize> for LAlphaBeta
Source§impl IndexMut<usize> for LAlphaBeta
impl IndexMut<usize> for LAlphaBeta
Source§impl Neg for LAlphaBeta
impl Neg for LAlphaBeta
Source§impl PartialEq for LAlphaBeta
impl PartialEq for LAlphaBeta
Source§impl PartialOrd for LAlphaBeta
impl PartialOrd for LAlphaBeta
impl Copy for LAlphaBeta
impl StructuralPartialEq for LAlphaBeta
Auto Trait Implementations§
impl Freeze for LAlphaBeta
impl RefUnwindSafe for LAlphaBeta
impl Send for LAlphaBeta
impl Sync for LAlphaBeta
impl Unpin for LAlphaBeta
impl UnwindSafe for LAlphaBeta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more