A boilerplate based on the fxhash-webpack-boilerplate, but with fx(stdio) and p5 installed.
Ensure that you have nodejs installed.
Clone the repository:
git clone https://github.com/alt-escapism/fxhash-stdio-boilerplate.git your_folder && cd your_folder
Install:
npm i
Start server:
npm start
This last command will open up your project with fx(stdio) installed, and live reloading enabled, so that you can iterate faster on your projects.
The file src/index.js
contains sample code for getting started with fx(stdio)
and p5. This should show you how to integrate with fx(stdio). In short, import
and use the randomization functions from @altesc/stdio
, instead of the ones
from p5. If you want a random variable to appear in the fx(stdio) UI, simply add
a unique name as the first argument to the function.
See the fx(stdio) documentation for more information.
$ npm run build
This will prepare your bundle for publishing to fx(hash). The fx(stdio) UI will be stripped from this version.
A zip file can be found at dist-zipped/project.zip
, which can be directly
imported on fx(hash).