JSPM

hsl-triad

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5428
  • Score
    100M100P100Q133148F
  • License MIT

Generate a color triad.

Package Exports

  • hsl-triad

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (hsl-triad) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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