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

Commit 16b8660

Browse files
committed
Updated Deno README
1 parent 7c35b1b commit 16b8660

File tree

1 file changed

+53
-5
lines changed

1 file changed

+53
-5
lines changed

Source/README.md

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,74 @@
11

22
<br>
33

4-
<div align = center>
4+
[![Badge Commit]][GitHub]   
5+
[![Badge License]][License]   
6+
[![Badge Stars]][GitHub]
7+
8+
<br>
59

610
# HSL
711

812
*Convert colors to RGB.*
913

1014
<br>
1115

12-
[![Button Documentation]][Documentation]
16+
[![Button Documentation]][GitHub]
17+
18+
<br>
19+
<br>
20+
21+
## Preview
22+
23+
<br>
24+
25+
```JavaScript
26+
import * as RGB from 'https://deno.land/x/rgb/mod.ts';
27+
```
28+
29+
</div>
30+
31+
<br>
32+
33+
### Hex
34+
35+
```JavaScript
36+
const hex = '#0000FF'; // Blue
37+
38+
const rgb = RGB.fromHex(hex);
39+
40+
console.log(rgb); // [ 0 , 0 , 255 ]
41+
```
42+
43+
<br>
44+
45+
### HSL
46+
47+
```JavaScript
48+
const hsl = [ 0 , 100 , 50 ]; // Red
49+
50+
const rgb = RGB.fromHSL(hsl);
1351

14-
<div>
52+
console.log(rgb); // [ 255 , 0 , 0 ]
53+
```
1554

1655
<br>
1756

1857

1958
<!----------------------------------------------------------------------------->
2059

21-
[Documentation]: https://github.com/OmegaTools/RGB
60+
[Examples]: https://github.com/OmegaTools/RGB/tree/main/Examples
61+
[License]: https://github.com/OmegaTools/RGB/blob/main/LICENSE
62+
[GitHub]: https://github.com/OmegaTools/RGB
63+
64+
65+
<!---------------------------------[ Badges ]---------------------------------->
66+
67+
[Badge License]: https://img.shields.io/badge/License-AGPL3-015d93.svg?style=for-the-badge&labelColor=blue
68+
[Badge Stars]: https://img.shields.io/github/stars/OmegaTools/RGB?style=for-the-badge&logoColor=white&logo=Trustpilot&labelColor=FF66AA&color=cf538b
69+
[Badge Commit]: https://img.shields.io/github/last-commit/OmegaTools/RGB?style=for-the-badge&logoColor=white&logo=Git&labelColor=64bc4b&color=539a3e
2270

2371

2472
<!---------------------------------[ Buttons ]--------------------------------->
2573

26-
[Button Documentation]: https://img.shields.io/badge/Documentation-04ACE6?style=for-the-badge&logoColor=white&logo=GitHub
74+
[Button Documentation]: https://img.shields.io/badge/Documentation-blue?style=for-the-badge&logoColor=white&logo=BookStack

0 commit comments

Comments
 (0)