Skip to content

Commit f1c49c8

Browse files
committed
Update API docs to use percentages for lab() and lch()
1 parent 9c3bc51 commit f1c49c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ culori.parse('hsl(60 50% 10% / 100%)');
4848
// => { h: 60, s: 0.5, b: 0.1, alpha: 1, mode: 'hsl' }
4949

5050
// Lab colors:
51-
culori.parse('lab(100 -50 50)');
51+
culori.parse('lab(100% -50 50)');
5252
// => { l: 100, a: -50, b: 50, mode: 'lab' }
5353
```
5454

@@ -126,11 +126,11 @@ Returns a function which you use to retreive a representation that's displayable
126126

127127
```js
128128
// RGB clamping
129-
culori.clamp('rgb')('lab(50 100 100)');
129+
culori.clamp('rgb')('lab(50% 100 100)');
130130
// => { mode: "lab", l: 54.29173376861782, a: 80.8124553179771, b: 69.88504032350531 }
131131

132132
// LCh clamping
133-
culori.clamp('lch')('lab(50 100 100)');
133+
culori.clamp('lch')('lab(50% 100 100)');
134134
// => { mode: "lab", l:50.0000028101302, a: 63.11644430269186, b: 63.11642289997279 }
135135
```
136136

0 commit comments

Comments
 (0)