round numbers on color operations

This commit is contained in:
cloudhead 2010-02-26 22:29:51 -05:00
parent a7ae7c8514
commit 1c43df1b85

View File

@ -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) {