This is a server that lets you render an image from your computer onto Scratch over cloud variables. You can check out this project to see a client example.
You will need Node.js to run this server.
-
Install the required libraries for this project.
npm i
-
Run
genConfig.cjs
to generate the config file needed for the server to run.node genConfig.cjs
Don't worry; your password will not be shown in the terminal.
-
You should also replace
input.png
with your own file, if you want to render a different image. -
Run
index.js
.node index.js
-
Wait for reading to finish before starting the Scratch project linked with the server. This can take a bit.
If you've done everything correctly, you should see your image begin to render on the Scratch side!
Note that the image may tear occasionally due to lag.
Error: Unexpected server response: 502
Restart the server; I don't think there's much I can do about this.