Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(color): add lab D50/65 conv, update HSx<>CSS conv
- add labLabD50_65/D65_50() - add lab65 -> CSS conversion (always as D50) - since there's no official requirement, allow direct conversions from sRGB to various HSx modes (also to be backward compatible)
- Loading branch information
1 parent
4c846d6
commit 014e41d
Showing
11 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { ColorOp } from "../api"; | ||
import { xyzLab, xyzLabD65 } from "../xyz/xyz-lab"; | ||
import { xyzXyzD50_65, xyzXyzD65_50 } from "../xyz/xyz-xyz"; | ||
import { labXyz, labXyzD65 } from "./lab-xyz"; | ||
|
||
export const labLabD50_65: ColorOp = (out, src) => | ||
xyzLabD65(out, xyzXyzD50_65(out, labXyz(out, src))); | ||
|
||
export const labLabD65_50: ColorOp = (out, src) => | ||
xyzLab(out, xyzXyzD65_50(out, labXyzD65(out, src))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters