Socket
Socket
Sign inDemoInstall

hsl-triad

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hsl-triad

Generate a color triad.


Version published
Maintainers
1
Install size
3.72 kB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 01 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc