diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-05-03 12:32:34 +1000 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2020-05-03 12:32:34 +1000 |
commit | 59f09a1a2317e57d13bbe8f60e1949cc82199ead (patch) | |
tree | 6c76c27325af4440146be65731fbc69ec398ddf0 /src/types | |
parent | 897bbfa075055097d64d42d7a32952bec9c75665 (diff) | |
download | svg.js-59f09a1a2317e57d13bbe8f60e1949cc82199ead.tar.gz svg.js-59f09a1a2317e57d13bbe8f60e1949cc82199ead.zip |
99% line coverage - BAAAAM
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/Color.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/types/Color.js b/src/types/Color.js index eb6368e..eb6168f 100644 --- a/src/types/Color.js +++ b/src/types/Color.js @@ -28,7 +28,7 @@ function is (object, space) { } function getParameters (a, b) { - const params = is(a, 'rgb') ? { _a: a.r, _b: a.g, _c: a.b, space: 'rgb' } + const params = is(a, 'rgb') ? { _a: a.r, _b: a.g, _c: a.b, _d: 0, space: 'rgb' } : is(a, 'xyz') ? { _a: a.x, _b: a.y, _c: a.z, _d: 0, space: 'xyz' } : is(a, 'hsl') ? { _a: a.h, _b: a.s, _c: a.l, _d: 0, space: 'hsl' } : is(a, 'lab') ? { _a: a.l, _b: a.a, _c: a.b, _d: 0, space: 'lab' } |