round numbers on color operations

browser
cloudhead 15 years ago
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…
Cancel
Save