Skip to content
This repository was archived by the owner on Mar 14, 2024. It is now read-only.

Commit 4d4a0d7

Browse files
committed
Update README.md
1 parent f7887c8 commit 4d4a0d7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,18 @@ console.log(hsl); // [ 0 , 100 , 50 ]
5050

5151
<br>
5252

53+
### Hex
54+
55+
```JavaScript
56+
const hex = '#0000FF'; // Blue
57+
58+
const hsl = HSL.fromHex(hex);
59+
60+
console.log(hsl); // [ 240 , 100 , 50 ]
61+
```
62+
63+
<br>
64+
5365
### CMYK
5466

5567
```JavaScript

0 commit comments

Comments
 (0)