Prettified Code!
This commit is contained in:
parent
7a52508a3b
commit
cfca5d95ba
1 changed files with 1 additions and 11 deletions
|
@ -922,17 +922,7 @@ const dream_img2img_callback = (bb, resolution, state) => {
|
||||||
bbCtx.fillStyle = state.invertMask ? "#FFFF" : "#000F";
|
bbCtx.fillStyle = state.invertMask ? "#FFFF" : "#000F";
|
||||||
bbCtx.fillRect(0, 0, bb.w, bb.h);
|
bbCtx.fillRect(0, 0, bb.w, bb.h);
|
||||||
bbCtx.globalCompositeOperation = "destination-out";
|
bbCtx.globalCompositeOperation = "destination-out";
|
||||||
bbCtx.drawImage(
|
bbCtx.drawImage(maskPaintCanvas, bb.x, bb.y, bb.w, bb.h, 0, 0, bb.w, bb.h);
|
||||||
maskPaintCanvas,
|
|
||||||
bb.x,
|
|
||||||
bb.y,
|
|
||||||
bb.w,
|
|
||||||
bb.h,
|
|
||||||
0,
|
|
||||||
0,
|
|
||||||
bb.w,
|
|
||||||
bb.h
|
|
||||||
);
|
|
||||||
|
|
||||||
bbCtx.globalCompositeOperation = "destination-atop";
|
bbCtx.globalCompositeOperation = "destination-atop";
|
||||||
bbCtx.fillStyle = state.invertMask ? "#000F" : "#FFFF";
|
bbCtx.fillStyle = state.invertMask ? "#000F" : "#FFFF";
|
||||||
|
|
Loading…
Reference in a new issue