Skip to content

Commit

Permalink
Fix oklch and oklab colorspace names (#300)
Browse files Browse the repository at this point in the history
Change the oklch and oklab colorspace names so they align
with the CSS Color Level 4 spec and the original oklab article.

https://www.w3.org/TR/css-color-4/
https://bottosson.github.io/posts/oklab/
  • Loading branch information
lloydk authored Apr 20, 2023
1 parent b829d9f commit 64430d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spaces/oklab.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const LabtoLMS_M = [

export default new ColorSpace({
id: "oklab",
name: "OKLab",
name: "Oklab",
coords: {
l: {
refRange: [0, 1],
Expand Down
2 changes: 1 addition & 1 deletion src/spaces/oklch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {constrain as constrainAngle} from "../angles.js";

export default new ColorSpace({
id: "oklch",
name: "OKLCh",
name: "Oklch",
coords: {
l: {
refRange: [0, 1],
Expand Down

0 comments on commit 64430d9

Please sign in to comment.