Fix mistake in Raster#setPixel.

This commit is contained in:
Jonathan Puckey 2013-03-17 16:39:23 +01:00
parent 6bcb393232
commit 9f466bbc97

View file

@ -469,7 +469,7 @@ var Raster = this.Raster = PlacedItem.extend(/** @lends Raster# */{
_color = Color.read(arguments); _color = Color.read(arguments);
var ctx = this.getContext(true), var ctx = this.getContext(true),
imageData = ctx.createImageData(1, 1), imageData = ctx.createImageData(1, 1),
alpha = color.getAlpha(); alpha = _color.getAlpha();
imageData.data[0] = _color.getRed() * 255; imageData.data[0] = _color.getRed() * 255;
imageData.data[1] = _color.getGreen() * 255; imageData.data[1] = _color.getGreen() * 255;
imageData.data[2] = _color.getBlue() * 255; imageData.data[2] = _color.getBlue() * 255;