hsl-triad

1.0.0 • Public • Published

hsl-triad Build Status codecov

Generate a color triad.

Install

$ npm install hsl-triad

Usage

const hslTriad = require('hsl-triad');

hslRgb(340, 1, 0.5);
//=> [
//=>   [340, 1, 0.5],
//=>   [100, 1, 0.5],
//=>   [220, 1, 0.5]
//=> ]

API

hslRgb(h, s, l)

h

Type: number Max: 360

The hue

s

Type: number Max: 1

The saturation

l

Type: number Max: 1

The lightness

Retuns

Type: array

An array of arrays containing hsl values.

License

MIT © Tobias Herber

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i hsl-triad

    Weekly Downloads

    1,722

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    2.89 kB

    Total Files

    4

    Last publish

    Collaborators

    • tobihrbr