2.0.1 • Published 2 years ago

color-helpers v2.0.1

Weekly downloads
332
License
MIT
Repository
-
Last release
2 years ago

Build Status

Color Utils

Tiny helper library for color operations or conversions.

Installation

npm install color-helpers

Or if you are using yarn:

yarn add color-helpers

API

The following conversions are supported:

  • rgbhex
  • hsvhsl
  • hsvrgb
  • hslrgb

shade(color, percentage)

Darken or lighten a color. Color can either be a hex string or an array containing the rgb value. The percentage range is -1 - +1. Use positive numbers to lighten the color and negative values to darken it.

blend(color1, color2, percentage)

Mix two colors together. Percentage range is from 0 - 1.

LICENSE

MIT, see LICENSE.md

2.0.1

2 years ago

2.0.0

4 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago