Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
begin () {
ResetTransform(this.ctx);
Clear(this.ctx, true, 200, 200, 255, 1);
// this.circ.x++;
}// Make a fill pattern from the canvas
let pattern = ctx.createPattern(canvas, type);
const oldFill = ctx.fillStyle;
ctx.fillStyle = pattern;
ctx.clearRect(0, 0, canvas.width, canvas.height);
SetTransform(ctx, tx, ty);
ctx.fillRect(tx *= -1, ty *= -1, canvas.width, canvas.height);
ctx.fillStyle = oldFill;
ResetTransform(ctx);
pattern = undefined;
return canvas;
}begin () {
ResetTransform(this.ctx);
Clear(this.ctx, true, 0, 0, 50, 1);
this.rect.x++;
}begin () {
ResetTransform(this.ctx);
CLS(this.ctx, true, 50, 50, 100);
}begin () {
ResetTransform(this.ctx);
Clear(this.ctx, true, 0, 0, 50, 1);
this.rect1.x++;
this.rect2.x++;
}begin () {
ResetTransform(this.context);
Clear(this.context, false);
}begin () {
ResetTransform(this.ctx);
Clear(this.ctx, true, 0, 0, 50, 1);
this.rect.transform.x++;
}