MCPcopy Create free account
hub / github.com/csskit/csskit / Lab

Class Lab

crates/chromashift/src/lab.rs:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13/// - Alpha - a number between 0.0 and 100.0
14#[derive(Debug, Clone, Copy, PartialEq)]
15pub struct Lab {
16 pub lightness: f64,
17 pub a: f64,
18 pub b: f64,
19 pub alpha: f32,
20}
21
22impl Lab {
23 pub fn new(lightness: f64, a: f64, b: f64, alpha: f32) -> Self {

Callers 9

to_chromashiftMethod · 0.85
parseMethod · 0.85
to_chromashiftMethod · 0.85
with_alphaMethod · 0.85
fromMethod · 0.85
roundMethod · 0.85
clamp_to_gamutMethod · 0.85
map_to_gamutMethod · 0.85

Calls

no outgoing calls

Tested by 1