mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Clean up variable names.
This commit is contained in:
parent
b9739aa26a
commit
acecb1a2c1
1 changed files with 5 additions and 6 deletions
|
@ -45,12 +45,11 @@ var BlendMode = {
|
|||
// we can easily encorporate changes?
|
||||
process: function(blendMode, sourceContext, destContext, opacity, offset) {
|
||||
var sourceCanvas = sourceContext.canvas,
|
||||
dstD = destContext.getImageData(offset.x, offset.y,
|
||||
dstData = destContext.getImageData(offset.x, offset.y,
|
||||
sourceCanvas.width, sourceCanvas.height),
|
||||
srcD = sourceContext.getImageData(0, 0,
|
||||
sourceCanvas.width, sourceCanvas.height),
|
||||
src = srcD.data,
|
||||
dst = dstD.data,
|
||||
dst = dstData.data,
|
||||
src = sourceContext.getImageData(0, 0,
|
||||
sourceCanvas.width, sourceCanvas.height).data,
|
||||
min = Math.min,
|
||||
opacity = opacity / 255,
|
||||
sA, dA, sAM, dAM, dA2, sRA, sGA, sBA, dRA, dGA, dBA, demultiply;
|
||||
|
@ -178,6 +177,6 @@ var BlendMode = {
|
|||
process(i);
|
||||
dst[i + 3] = dA2 * 255;
|
||||
}
|
||||
destContext.putImageData(dstD, offset.x, offset.y);
|
||||
destContext.putImageData(dstData, offset.x, offset.y);
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue