Skip to content

Commit

Permalink
style(color): rgb
Browse files Browse the repository at this point in the history
  • Loading branch information
curbengh committed Dec 3, 2019
1 parent fff763e commit 49a1727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,9 @@ class Color {
this.a = match[4] ? +match[4] : 1;

if (!s) {
this.b = l * 255;
this.g = l * 255;
this.r = l * 255;
this.g = l * 255;
this.b = l * 255;
}

const q = l < 0.5 ? l * (1 + s) : l + s - (l * s);
Expand Down

0 comments on commit 49a1727

Please sign in to comment.