@factor-sef/colorful
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@factor-sef/colorful

Color object for working in JavaScript. Based on CSS Color Module Level 4.

Instalation

npm install @factor-sef/colorful

Usage

import Color from '@factor-sef/colorful';

const color = new Color('#ffffff');

console.log(color.toRgbString()) // => 'rgb(255, 255, 255)'

Roadmap

  • [x] Work with HEX
  • [x] Work with RGB
  • [x] Work with HSL
  • [x] Work with HWB
  • [ ] Get/set hue rotation
  • [x] Get/set alpha
  • [ ] Get/set satudation
  • [ ] Get/set lightness
  • [ ] Get/set blackness
  • [ ] set scale
  • [ ] set greyscale

Readme

Keywords

none

Package Sidebar

Install

npm i @factor-sef/colorful

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

25.9 kB

Total Files

15

Last publish

Collaborators

  • factor-sef