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: 17 days 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-14T23:23:45.000Z (about 2 years ago)
- Last Synced: 2025-03-11T04:49:10.617Z (about 1 month ago)
- Language: TypeScript
- Homepage:
- Size: 884 KB
- Stars: 4
- Watchers: 2
- 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
[](https://github.com/archco/moo-color/actions/workflows/node.js.yml)
[](https://www.npmjs.com/package/moo-color)
[](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)