Commit a51782f8 authored by Zéfling's avatar Zéfling 🎨
Browse files

Update changelog + readme

parent 2b04be01
# Changelog of coloration-lib
## V0.0.3 (2019-01-22)
### Features
- add `maskColor` and `maskOpacity` params for `addColor()`
## V0.0.2 (2019-01-21)
### Changes
### Features
- add `getRGB()` and `getHSV()` methods
......
......@@ -21,11 +21,29 @@ Only for demo:
## Usage
Example:
### Examples
#### changeLuminosity
```typescript
import {Coloration} from 'coloration-lib';
const color = new Coloration('red');
color.changeLuminosity(0.55);
console.log(color.toHEX()); // #ff8c8c
```
#### maskColor
```typescript
const color = new Coloration('red');
color.maskColor('blue', 0.25);
console.log(color.toHEX()); // #bf0040
```
#### addColor
```typescript
const color = new Coloration('red');
color.addColor({
h: -23,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment