Commit 05ed8565 authored by Zéfling's avatar Zéfling 🦉
Browse files

Add reset method

parent a51782f8
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
# Changelog of coloration-lib

## V0.0.4 (2019-01-23)

### Feature

- add `reset()` method

## V0.0.3 (2019-01-22)

### Features
+0 −2
Original line number Diff line number Diff line
@@ -2,8 +2,6 @@

# Coloration

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.0.4.

## Installation

```
+1 −1
Original line number Diff line number Diff line
{
  "name": "coloration-lib",
  "version": "0.0.3",
  "version": "0.0.4",
  "license": "MIT",
  "repository": {
    "type": "git",
+8 −1
Original line number Diff line number Diff line
@@ -83,7 +83,14 @@ export class Coloration {
    private hsv: HSV = { h: 0, s: 0, v: 0 };

    constructor(public color: string) {
        this.intColor = this.parseColor(color);
        this.reset();
    }

    /**
     * reinit to base color
     */
    reset() {
        this.intColor = this.parseColor(this.color);
        this.updateColor();
    }