Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/archco/moo-color
The simple javascript library that provides convenient methods for color parsing and manipulation.
https://github.com/archco/moo-color
Last synced: 3 months ago
JSON representation
The simple javascript library that provides convenient methods for color parsing and manipulation.
- Host: GitHub
- URL: https://github.com/archco/moo-color
- Owner: archco
- License: mit
- Created: 2018-02-03T04:42:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T23:23:45.000Z (almost 2 years ago)
- Last Synced: 2024-09-19T23:29:04.046Z (4 months ago)
- Language: TypeScript
- Homepage:
- Size: 884 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- my-awesome-list - moo-color
README
# MooColor
[![Node.js CI](https://github.com/archco/moo-color/actions/workflows/node.js.yml/badge.svg)](https://github.com/archco/moo-color/actions/workflows/node.js.yml)
[![npm version](https://badge.fury.io/js/moo-color.svg)](https://www.npmjs.com/package/moo-color)
[![Downloads](https://img.shields.io/npm/dm/moo-color.svg)](https://www.npmjs.com/package/moo-color)A javascript class that provides convenience for color parsing and manipulating.
## Install
``` sh
npm install moo-color
```## Usage
``` js
import MooColor from 'moo-color';const color = new MooColor('#f00');
color.whiten(10).toString('hwb'); // returns 'hwb(0, 10%, 0)'
```## API
Please see [MooColor API](https://github.com/archco/moo-color/tree/master/docs#moocolor-api).
## Change Log
[CHANGELOG.md](https://github.com/archco/moo-color/blob/master/CHANGELOG.md)
## license
[MIT License](https://github.com/archco/moo-color/blob/master/LICENSE)