round numbers on color operations
This commit is contained in:
parent
a7ae7c8514
commit
1c43df1b85
@ -18,7 +18,7 @@ node.Color.prototype = {
|
||||
eval: function () { return this },
|
||||
toCSS: function () {
|
||||
return '#' + this.value.map(function (i) {
|
||||
return i.toString(16);
|
||||
return Math.round(i).toString(16);
|
||||
}).join('');
|
||||
},
|
||||
'+': function (other) {
|
||||
|
Loading…
Reference in New Issue
Block a user