vertexshaderart
vertexshaderart copied to clipboard
How can i use this on my own site.
So I am developing an API and website. I wanna figure out how I can save files from your site and send them to my website to be rendered and still be able to pass in an audio stream.
given an id (from the URLs) you can get them with
const req = await fetch("https://www.vertexshaderart.com/art/zd2E5vCZduc5JeoFz?format=json");
const data = await req.json();
Example: https://jsfiddle.net/greggman/yaezcxp0/
As for running them the code is here
All the code in that folder runs without the rest of the site. You just need to take the data provided by the 2 lines above and apply it by calling setSettings
. Of course you'll probably want to rip out the editor and the UI but that's where you'd start
alright ill work on it. Thanks. if you could create a npm library for this so i could just pass in url,audio stream, width,height. I would pay you. Add me on discord please. KingCairo#6991