Merge pull request #1298 from pi-hole/XhmikosR-patch-5

Enable `no-zero-fractions` rule
This commit is contained in:
DL6ER
2020-05-25 19:48:01 +02:00
committed by GitHub
6 changed files with 12 additions and 13 deletions

View File

@@ -49,9 +49,9 @@ function rgbToHex(values) {
function mixColors(ratio, rgb1, rgb2) {
return [
(1.0 - ratio) * rgb1[0] + ratio * rgb2[0],
(1.0 - ratio) * rgb1[1] + ratio * rgb2[1],
(1.0 - ratio) * rgb1[2] + ratio * rgb2[2]
(1 - ratio) * rgb1[0] + ratio * rgb2[0],
(1 - ratio) * rgb1[1] + ratio * rgb2[1],
(1 - ratio) * rgb1[2] + ratio * rgb2[2]
];
}