From 2dd926cbbbc26a7f58cdf237730ac7b8f4fada45 Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Thu, 21 Jan 2021 20:56:34 +0100 Subject: [PATCH] use opacity when generating the image --- src/App.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/App.js b/src/App.js index 7ed1c0c..8d24763 100644 --- a/src/App.js +++ b/src/App.js @@ -27,10 +27,10 @@ function App() { offscreenCanvas.width = frameSize offscreenCanvas.height = frameSize - const offscreenCanvas_ctx = offscreenCanvas.getContext('2d', { alpha: false }) const width = frameSize const height = (img.height / img.width) * frameSize + const offscreenCanvas_ctx = offscreenCanvas.getContext('2d', { alpha: true }) offscreenCanvas_ctx.drawImage( img, (frameSize - width) / 2,