Skip to content

Commit

Permalink
Example code docs test
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoneDroid committed Mar 15, 2024
1 parent bb2564b commit 239187d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Source/HSL/CMYK.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) ]
*/
Expand Down

0 comments on commit 239187d

Please sign in to comment.