2.0.1 • Published 4 years ago

time-to-color-converter v2.0.1

Weekly downloads
5
License
ISC
Repository
github
Last release
4 years ago

Install

$ npm install time-to-color-converter

Usage

import convert from 'time-to-color-converter';

or

const convert = require('time-to-color-converter');

then

const { h, s, l } = convert(new Date(), false); // Set true to the second parameter if you use this for the southern hemisphere.

You can use these values like below.

document.getElementsByTagName('body')[0].style.backgroundColor = `hsl(${h}, ${s}%, ${l}%)`;
2.0.1

4 years ago

2.0.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago