Fix RGBColor#setGray.

This commit is contained in:
Jonathan Puckey 2011-02-24 12:58:16 +01:00
parent 2712bd0419
commit 73df06150a

View file

@ -157,7 +157,7 @@ RGBColor = Color.extend(new function() {
setGray: function(gray) { setGray: function(gray) {
this._cssString = null; this._cssString = null;
this._red = this._green = this._blue = gray; this._red = this._green = this._blue = 1 - gray;
}, },
/** /**