mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 05:52:42 -05:00
Fixes (whitespace, semicolons) to satisfy TRAVIS
This commit is contained in:
parent
e64f015489
commit
b7f0551fac
1 changed files with 13 additions and 13 deletions
|
@ -72,35 +72,35 @@ const _makePaintingLayer = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
const _makeBackgroundPaper = function (width, height, color) {
|
const _makeBackgroundPaper = function (width, height, color) {
|
||||||
var x = 0;
|
let x = 0;
|
||||||
var y = 0;
|
let y = 0;
|
||||||
var sb = [];
|
let pathPoints = [];
|
||||||
while (x < width) {
|
while (x < width) {
|
||||||
sb.push(new paper.Point(x,y));
|
pathPoints.push(new paper.Point(x, y));
|
||||||
x++;
|
x++;
|
||||||
sb.push(new paper.Point(x,y));
|
pathPoints.push(new paper.Point(x, y));
|
||||||
y = y == 0 ? height : 0;
|
y = y === 0 ? height : 0;
|
||||||
}
|
}
|
||||||
y = height - 1;
|
y = height - 1;
|
||||||
x = width;
|
x = width;
|
||||||
while (y > 0) {
|
while (y > 0) {
|
||||||
sb.push(new paper.Point(x,y));
|
pathPoints.push(new paper.Point(x, y));
|
||||||
x = (x == 0 ? width : 0);
|
x = (x === 0 ? width : 0);
|
||||||
sb.push(new paper.Point(x,y));
|
pathPoints.push(new paper.Point(x, y));
|
||||||
y--;
|
y--;
|
||||||
}
|
}
|
||||||
const vRect = new paper.Shape.Rectangle(new paper.Point(0, 0), new paper.Point(120, 90));
|
const vRect = new paper.Shape.Rectangle(new paper.Point(0, 0), new paper.Point(120, 90));
|
||||||
vRect.fillColor = '#fff';
|
vRect.fillColor = '#fff';
|
||||||
vRect.guide = true;
|
vRect.guide = true;
|
||||||
vRect.locked = true;
|
vRect.locked = true;
|
||||||
const vPath = new paper.Path(sb);
|
const vPath = new paper.Path(pathPoints);
|
||||||
vPath.fillRule = 'evenodd';
|
vPath.fillRule = 'evenodd';
|
||||||
vPath.fillColor = color;
|
vPath.fillColor = color;
|
||||||
vPath.guide = true;
|
vPath.guide = true;
|
||||||
vPath.locked = true;
|
vPath.locked = true;
|
||||||
const vGroup = new paper.Group([vRect, vPath]);
|
const vGroup = new paper.Group([vRect, vPath]);
|
||||||
return vGroup;
|
return vGroup;
|
||||||
}
|
};
|
||||||
|
|
||||||
const _makeBackgroundGuideLayer = function () {
|
const _makeBackgroundGuideLayer = function () {
|
||||||
const guideLayer = new paper.Layer();
|
const guideLayer = new paper.Layer();
|
||||||
|
|
Loading…
Reference in a new issue