mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-08 13:42:00 -05:00
Fix width/height switched
This commit is contained in:
parent
d273608102
commit
5230e97903
1 changed files with 1 additions and 2 deletions
|
@ -216,7 +216,6 @@ const _makeBackgroundPaper = function (width, height, color, opacity) {
|
|||
mask.scale(1 / CHECKERBOARD_SIZE);
|
||||
const vGroup = new paper.Group([vRect, vPath, mask]);
|
||||
mask.clipMask = true;
|
||||
|
||||
return vGroup;
|
||||
};
|
||||
|
||||
|
@ -297,8 +296,8 @@ const _makeBackgroundGuideLayer = function (format) {
|
|||
// Add 1 to the height because it's an odd number otherwise, and we want it to be even
|
||||
// so the corner of the checkerboard to line up with the center crosshair
|
||||
const vBackground = _makeBackgroundPaper(
|
||||
(MAX_WORKSPACE_BOUNDS.height / CHECKERBOARD_SIZE) + 1,
|
||||
MAX_WORKSPACE_BOUNDS.width / CHECKERBOARD_SIZE,
|
||||
(MAX_WORKSPACE_BOUNDS.height / CHECKERBOARD_SIZE) + 1,
|
||||
'#0062ff', 0.05);
|
||||
vBackground.position = CENTER;
|
||||
vBackground.scaling = new paper.Point(CHECKERBOARD_SIZE, CHECKERBOARD_SIZE);
|
||||
|
|
Loading…
Reference in a new issue