Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 631 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 631 Bytes

@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

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