pub struct HctSolver;Implementations§
Source§impl HctSolver
impl HctSolver
Sourcepub fn solve_to_argb(hue_degrees: f64, chroma: f64, lstar: f64) -> Argb
pub fn solve_to_argb(hue_degrees: f64, chroma: f64, lstar: f64) -> Argb
Finds an sRgb color with the given hue, chroma, and L*, if possible.
Returns a hexadecimal representing a sRgb color with its hue,
chroma, and L* sufficiently close to hue_degrees, chroma, and
lstar, respectively. If it is impossible to satisfy all three
constraints, the hue and L* will be sufficiently close, and the
chroma will be maximized.
Sourcepub fn solve_to_cam(hue_degrees: f64, chroma: f64, lstar: f64) -> Cam16
pub fn solve_to_cam(hue_degrees: f64, chroma: f64, lstar: f64) -> Cam16
Finds a CAM16 object with the given hue, chroma, and L*, if possible.
Returns a CAM16 object representing a sRgb color with its hue,
chroma, and L* sufficiently close to hue_degrees, chroma, and
lstar, respectively. If it is impossible to satisfy all three
constraints, the hue and L* will be sufficiently close, and the
chroma will be maximized.
Auto Trait Implementations§
impl Freeze for HctSolver
impl RefUnwindSafe for HctSolver
impl Send for HctSolver
impl Sync for HctSolver
impl Unpin for HctSolver
impl UnsafeUnpin for HctSolver
impl UnwindSafe for HctSolver
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