This commit is contained in:
parent
b8b0fbb57e
commit
afc4092824
14 changed files with 153 additions and 48 deletions
7
LCH.go
7
LCH.go
|
@ -19,12 +19,7 @@ func LCH(lightness Value, chroma Value, hue Value) Color {
|
|||
b *= chroma
|
||||
|
||||
r, g, b := oklabToLinearRGB(lightness, a, b)
|
||||
|
||||
r = sRGB(r)
|
||||
g = sRGB(g)
|
||||
b = sRGB(b)
|
||||
|
||||
return Color{r, g, b}
|
||||
return RGB(r, g, b)
|
||||
}
|
||||
|
||||
// findChromaInSRGB tries to find the closest chroma that can be represented in sRGB color space.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue