Improve comments.

This commit is contained in:
Jürg Lehni 2011-03-14 22:07:21 +01:00
parent a2a9646d02
commit a48c130965

View file

@ -30,7 +30,9 @@ var Color = this.Color = Base.extend(new function() {
colorContext = canvas.getContext('2d');
colorContext.globalCompositeOperation = 'copy';
}
// Set the current fillStyle to transparent:
// Set the current fillStyle to transparent, so that it will be
// transparent instead of the previously set color in case the new color
// can not be interpreted.
colorContext.fillStyle = 'rgba(0, 0, 0, 0)';
// Set the fillStyle of the context to the passed name and fill the
// canvas with it, then retrieve the data for the drawn pixel: