vertexshaderart icon indicating copy to clipboard operation
vertexshaderart copied to clipboard

How can i use this on my own site.

Open CaiIsProgrammer opened this issue 4 years ago • 2 comments

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.

CaiIsProgrammer avatar Sep 17 '20 22:09 CaiIsProgrammer

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

greggman avatar Sep 18 '20 05:09 greggman

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

CaiIsProgrammer avatar Sep 18 '20 19:09 CaiIsProgrammer