1.0.0 • Published 6 years ago

@navelpluisje/color v1.0.0

Weekly downloads
2
License
ISC
Repository
bitbucket
Last release
6 years ago

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.

1.0.0

6 years ago