Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function update() {
texture.loadContentsOf(canvas);
fxCanvas
.draw(texture)
.colorShift()
.bulgePinch(canvas.width / 2, canvas.height / 2, canvas.width * 0.8, 0.1)
.vignette(0.2, 0.5)
.update();
if (isCapturing) {
captureContext.fillRect(0, 0, captureCanvas.width, captureCanvas.height);
captureContext.drawImage(
fxCanvas,
(captureCanvas.width - canvas.width) / 2,
0
);
gcc.capture(captureCanvas);
}
}