mirror of
https://github.com/SrIzan10/lofi.git
synced 2026-06-06 00:56:53 +00:00
chore: surely the last time i'll ever touch the analyzer right (copium)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user