mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 12:43:26 +00:00
Merge pull request #5589 from neil-h/master
Stop RGBToString from returning CSS strings with decimal places
This commit is contained in:
commit
0806f36685
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ var RGBToString = function (r, g, b, a, prefix)
|
|||
|
||||
if (prefix === '#')
|
||||
{
|
||||
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
|
||||
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1, 7);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue