Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/crayon/mod.ts>hslToRgb

🖍️ Terminal styling done light and fast.
Latest
function hslToRgb
Re-export
import { hslToRgb } from "https://deno.land/x/crayon@3.3.3/mod.ts";

Converts HSL color representation to RGB

Used algorithm from https://en.wikipedia.org/wiki/HSL_and_HSV#HSL_to_RGB_alternative

Parameters

h: number
s: number
l: number

Returns

[number, number, number]