Node.js script that captures VK Pixel Battle canvas and creates .png out of it in high resolution.
- Install Node.js.
- Clone or donwload this repo and unpack somewhere on your computer.
- In the root folder open terminal (e.g. cmd.exe) and run
npm i
. - When all dependencies is installed close the terminal.
- Go to
/src/
folder → openstart.cmd
or runnode index
in that folder. - Wait till your .png is finished.
- Check out
/src/
folder. Your image must already be there.
If you want to create another caption just begin from step 5.
Well, for now you can change only one thing — resolution. By default it's set to 10 which means that one pixel on Pixel Battle canvas will take 10x10 pixel of your .png. If you want to change it, open /src/index.js
in any text editor and find line const pixelSize = 10
. Change 10 to your value (max 20, min 1) → save the file → run start.cmd
.
Have any questions? Contact me on Telegram @mikhailsdv.
Subscribe to my Telegram channel @FilteredInternet.