pub struct HSBK {
pub hue: u16,
pub saturation: u16,
pub brightness: u16,
pub kelvin: u16,
}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: u16Implementations§
Trait Implementations§
impl Copy for HSBK
impl Eq for HSBK
impl StructuralPartialEq for HSBK
Auto Trait Implementations§
impl Freeze for HSBK
impl RefUnwindSafe for HSBK
impl Send for HSBK
impl Sync for HSBK
impl Unpin for HSBK
impl UnwindSafe for HSBK
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