GeezerVison is showing github.com — GitHub - OmegaTools/HSL: Deno HSL Color Conversion Module
This repository was archived by the owner on Mar 14, 2024. It is now read-only.
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
|
Repository files navigation


Convert colors to HSL.

import * as HSL from 'https://deno.land/x/hsl/mod.ts';
const rgb = [ 255 , 0 , 0 ]; // Red
const hsl = HSL.fromRGB(rgb);
console.log(hsl); // [ 0 , 100 , 50 ]
const hex = '#0000FF'; // Blue
const hsl = HSL.fromHex(hex);
console.log(hsl); // [ 240 , 100 , 50 ]
const cmyk = [ 100 , 0 , 100 , 0 ]; // Green
const hsl = HSL.fromCMYK(cmyk);
console.log(hsl); // [ 120 , 100 , 50 ]
About
Deno HSL Color Conversion Module
Topics
Resources
Stars
0 stars
Watchers
1 watching
Forks