mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Fix mistake in Raster#setPixel.
This commit is contained in:
parent
6bcb393232
commit
9f466bbc97
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue