@navelpluisje/color

1.0.0 • Public • Published

Color

npm (scoped) npm (scoped) npm (scoped) npm (scoped) npm (scoped)

About

This is a small library for creating hsl(a) color values. The input can be either a hex, rgb(a), hsl(a) or named color.

Usage

install

  npm i -S @navelpluisje/color

ES6 import

Javascript

import { Color } from '@navelpluisje/color/src';

const color = new Color('#f00');
concole.log(color.getHsl());
// Will output: hsl(0, 100%, 50%)

UMD

const { Color } = require('@navelpluisje/color/dist/umd');

const color = new Color('#0f0');
concole.log(color.getHsl());
// Will output: hsl(120, 100%, 50%)

Issues

If you found a bug, room for improvement or whatever, you can create an issue here.

Please check first if your issue already hes been reported.

Requests

If you have any idea for more usefull component (needs to be in pcb style) you can create an issue with a request.

Contribute

Just clone the repository, add your feature/imrovement an create a PR. When contributing please respect the linting and add ests for the changes you made.

Readme

Keywords

Package Sidebar

Install

npm i @navelpluisje/color

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

15.9 kB

Total Files

12

Last publish

Collaborators

  • navelpluisje