Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoxor committed Jun 24, 2022
1 parent 418a180 commit 86c5e16
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "amethyst",
"author": "amethyst <geoxor123@outlook.com>",
"productName": "Amethyst",
"version": "1.3.13",
"version": "1.3.14",
"main": "./release/dist/main/main.js",
"licenses": [
{
Expand Down
22 changes: 11 additions & 11 deletions src/renderer/components/Spectrum.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,17 @@ onMounted(() => {
canvasCtx.value.fillRect(i * barWidth, SPECTRUM_HEIGHT - barHeight, 1, barHeight);
}
// TODO: make this into a toggleable option in the settings
// Downscale the canvas to pixelize so it fits with the aesthetic of the app
canvasCtx.value.drawImage(spectrum, 0, 0, DOWNSCALED_WIDTH, DOWNSCALED_HEIGHT);
canvasCtx.value.clearRect(0, DOWNSCALED_HEIGHT, SPECTRUM_WIDTH, SPECTRUM_HEIGHT - (DOWNSCALED_HEIGHT))
canvasCtx.value.clearRect(DOWNSCALED_WIDTH, 0, SPECTRUM_WIDTH, DOWNSCALED_HEIGHT);
canvasCtx.value.drawImage(spectrum, 0, 0, DOWNSCALED_WIDTH, DOWNSCALED_HEIGHT, 0, 0, SPECTRUM_WIDTH, SPECTRUM_HEIGHT);
// this line clears the downscaled image thats drawn at the
// top left of the canvas by drawing a white rectangle over it
// its kinda trollface but it works i guess
// TODO: refactor this later because some low freq values get clipped under it
canvasCtx.value.clearRect(0, 0, DOWNSCALED_WIDTH, DOWNSCALED_HEIGHT);
// // TODO: make this into a toggleable option in the settings
// // Downscale the canvas to pixelize so it fits with the aesthetic of the app
// canvasCtx.value.drawImage(spectrum, 0, 0, DOWNSCALED_WIDTH, DOWNSCALED_HEIGHT);
// canvasCtx.value.clearRect(0, DOWNSCALED_HEIGHT, SPECTRUM_WIDTH, SPECTRUM_HEIGHT - (DOWNSCALED_HEIGHT))
// canvasCtx.value.clearRect(DOWNSCALED_WIDTH, 0, SPECTRUM_WIDTH, DOWNSCALED_HEIGHT);
// canvasCtx.value.drawImage(spectrum, 0, 0, DOWNSCALED_WIDTH, DOWNSCALED_HEIGHT, 0, 0, SPECTRUM_WIDTH, SPECTRUM_HEIGHT);
// // this line clears the downscaled image thats drawn at the
// // top left of the canvas by drawing a white rectangle over it
// // its kinda trollface but it works i guess
// // TODO: refactor this later because some low freq values get clipped under it
// canvasCtx.value.clearRect(0, 0, DOWNSCALED_WIDTH, DOWNSCALED_HEIGHT);
!shouldFuckOff && requestAnimationFrame(draw);
Expand Down

0 comments on commit 86c5e16

Please sign in to comment.