Fix tint function
This commit is contained in:
parent
b59eff4192
commit
14aa3365f3
1 changed files with 2 additions and 2 deletions
|
|
@ -109,8 +109,8 @@ function randomizeColor() {
|
||||||
function tintColor(value) {
|
function tintColor(value) {
|
||||||
let num = value.match(/\d+/g);
|
let num = value.match(/\d+/g);
|
||||||
r = +num[0] + (0.25 * +num[0]);
|
r = +num[0] + (0.25 * +num[0]);
|
||||||
g = +num[1] + (0.25 * +num[0]);
|
g = +num[1] + (0.25 * +num[1]);
|
||||||
b = +num[2] + (0.25 * +num[0]);
|
b = +num[2] + (0.25 * +num[2]);
|
||||||
|
|
||||||
return`rgb(${r},${g},${b})`;
|
return`rgb(${r},${g},${b})`;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue