Expand description
Bulb color (Hue-Saturation-Brightness-Kelvin)
Notes:
Colors are represented as Hue-Saturation-Brightness-Kelvin, or HSBK
When a light is displaying whites, saturation will be zero, hue will be ignored, and only brightness and kelvin will matter.
Normal values for “kelvin” are from 2500 (warm/yellow) to 9000 (cool/blue)
When a light is displaying colors, kelvin is ignored.
To display “pure” colors, set saturation to full (65535).
Fields
hue: u16
saturation: u16
brightness: u16
kelvin: u16
Implementations
Trait Implementations
impl Copy for HSBK
impl Eq for HSBK
impl StructuralEq for HSBK
impl StructuralPartialEq for HSBK
Auto Trait Implementations
impl RefUnwindSafe for HSBK
impl Send for HSBK
impl Sync for HSBK
impl Unpin for HSBK
impl UnwindSafe for HSBK
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more