Skip to content

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

License

Notifications You must be signed in to change notification settings

FactorSef/colorful

Repository files navigation

@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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published