From a8b957f87519561ec9a2d330daabac50d8760acc Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Tue, 22 Apr 2025 16:56:40 +0200 Subject: [PATCH] chore: surely the last time i'll ever touch the analyzer right (copium) --- src/lib/components/app/bg-analyzer.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib/components/app/bg-analyzer.svelte b/src/lib/components/app/bg-analyzer.svelte index 66c0590..8fd91da 100644 --- a/src/lib/components/app/bg-analyzer.svelte +++ b/src/lib/components/app/bg-analyzer.svelte @@ -14,8 +14,9 @@ // prettier-ignore ctx.drawImage( video, - 0, 0, video.videoWidth, video.videoHeight, - 0, 0, canvas.width, canvas.height + 0, video.videoHeight * 0.8, // 80% of the height + video.videoWidth, video.videoHeight * 0.2, // bottom 20% of the height + 0, 0, canvas.width, canvas.height // draw to canvas ); const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);