Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
coloration
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
typescript
coloration
Commits
a51782f8
Commit
a51782f8
authored
Jan 22, 2019
by
Zéfling
🎨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update changelog + readme
parent
2b04be01
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
CHANGELOG.md
CHANGELOG.md
+7
-1
README.md
README.md
+19
-1
No files found.
CHANGELOG.md
View file @
a51782f8
# Changelog of coloration-lib
## V0.0.3 (2019-01-22)
### Features
-
add
`maskColor`
and
`maskOpacity`
params for
`addColor()`
## V0.0.2 (2019-01-21)
###
Chang
es
###
Featur
es
-
add
`getRGB()`
and
`getHSV()`
methods
...
...
README.md
View file @
a51782f8
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
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