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

x/crayon/src/conversions.ts>hslToRgb

🖍️ Terminal styling done light and fast.
Go to Latest
function hslToRgb
import { hslToRgb } from "https://deno.land/x/crayon@3.3.2/src/conversions.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]