open-index/open-npm huggingface dataset:
npm package: @mzmap/color
Description: Easy way to convert color.
Author: zhangkaiqiang
Latest version: 0.0.3

# Color

Support color mode list:

- HSL
- HSLA
- RGB
- RGBA
- HSB

We will support CMYK, LAB in feature.

## Install

```bash
$ npm install @mzmap/color --save
```

## Usage

```javascript
import Color from '@mzmap/color'
```

## Create color methods

- fromRGB
- fromRGBA
- fromHSL
- fromHSLA
- fromHSB

## Get color array

- toRGB
- toRGBA
- toHSL
- toHSL
- toHSB

## Get color string

```javascript
// rgb(255, 255, 255) ==> rgba(255, 255, 255, 1)
Color.fromRGB('rgb(255, 255, 255)').toString('rgba')
```
npm package: @mzmap/colormap
Description: create colormap.
Author: zhangkaiqiang
Latest version: 0.0.2

# Colormap

## Install

```bash
$ npm install @mzmap/colormap --save
```

## Usage

```javascript
import Colormap from '@mzmap/colormap'
```

## Example

```javascript
var colormap = new Colormap([
  [0, '#000000'],
  [5, '#FF00FF'],
  [10, '#00FF00']
])

colormap.getColor(2)
```