Struct colorutils_rs::LAlphaBeta
source · 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: f32Implementations§
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_xyz(xyz: Xyz) -> LAlphaBeta
pub fn from_xyz(xyz: Xyz) -> LAlphaBeta
Converts XYZ to l-alpha-beta
sourcepub fn to_rgb(&self, transfer_function: TransferFunction) -> Rgb<u8>
pub fn to_rgb(&self, transfer_function: TransferFunction) -> Rgb<u8>
Converts l-alpha-beta to RGB
Trait Implementations§
source§impl Clone for LAlphaBeta
impl Clone for LAlphaBeta
source§fn clone(&self) -> LAlphaBeta
fn clone(&self) -> LAlphaBeta
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 LAlphaBeta
impl Debug 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)