From 239187da2d54814e81debe69e98b8c32e8997aa8 Mon Sep 17 00:00:00 2001 From: PhoneDroid <73050054+PhoneDroid@users.noreply.github.com> Date: Thu, 14 Mar 2024 22:20:34 -0400 Subject: [PATCH] Example code docs test --- Source/HSL/CMYK.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/HSL/CMYK.ts b/Source/HSL/CMYK.ts index dc8b19f..bfd5298 100644 --- a/Source/HSL/CMYK.ts +++ b/Source/HSL/CMYK.ts @@ -36,6 +36,16 @@ function toHSL ( /** * Converts CMYK(A) color arrays to HSL(A) color arrays. * + * ### Example + * + * ```typescript + * const cmyk = [ 0 , 100 , 100 , 0 ] // Red + * + * const hsl = cmykToHSL(cmyk) + * + * console.debug(hsl) // [ 0 , 100 , 50 ] + * ``` + * * @param channels [ Cyan , Magenta , Yellow , Key , ( Alpha ) ] * @returns [ Hue , Saturation , Lightness , ( Alpha ) ] */