Use modern RGB format (fixes #54)
This commit is contained in:
@ -558,9 +558,9 @@ Blah blah <q>Inline Quote</q> hmm.
|
||||
b = parseInt(hex.slice(5, 7), 16);
|
||||
|
||||
if (alpha) {
|
||||
return "rgba(" + r + ", " + g + ", " + b + ", " + alpha + ")";
|
||||
return "rgb(" + r + " " + g + " " + b + " / " + alpha + ")";
|
||||
} else {
|
||||
return "rgb(" + r + ", " + g + ", " + b + ")";
|
||||
return "rgb(" + r + " " + g + " " + b + ")";
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user