Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
typescript
coloration
Commits
05ed8565
Commit
05ed8565
authored
Jan 23, 2019
by
Zéfling
🎨
Browse files
Add reset method
parent
a51782f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
CHANGELOG.md
View file @
05ed8565
# Changelog of coloration-lib
## V0.0.4 (2019-01-23)
### Feature
-
add
`reset()`
method
## V0.0.3 (2019-01-22)
### Features
...
...
README.md
View file @
05ed8565
...
...
@@ -2,8 +2,6 @@
# Coloration
This project was generated with
[
Angular CLI
](
https://github.com/angular/angular-cli
)
version 7.0.4.
## Installation
```
...
...
projects/coloration/package.json
View file @
05ed8565
{
"name"
:
"coloration-lib"
,
"version"
:
"0.0.
3
"
,
"version"
:
"0.0.
4
"
,
"license"
:
"MIT"
,
"repository"
:
{
"type"
:
"git"
,
...
...
projects/coloration/src/lib/coloration.ts
View file @
05ed8565
...
...
@@ -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
();
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment