mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Fix alpha support in new Color#toCSS() code.
This commit is contained in:
parent
1ee5b2c126
commit
1d37944c89
1 changed files with 1 additions and 1 deletions
|
@ -817,7 +817,7 @@ var Color = Base.extend(new function() {
|
|||
convert(components[2])
|
||||
];
|
||||
if (alpha < 1)
|
||||
components.push(val < 0 ? 0 : val);
|
||||
components.push(alpha < 0 ? 0 : alpha);
|
||||
return hex
|
||||
? '#' + ((1 << 24) + (components[0] << 16)
|
||||
+ (components[1] << 8)
|
||||
|
|
Loading…
Reference in a new issue