Boilerplate setup for Token Art Tools
https://github.com/owmo-dev/token-art-tools
- Install
npm(https://www.npmjs.com/) - Clone & copy repository into a project directory
- Run
npm installcommand
- Run
npm run devto start the server - Accept any unsafe warnings and proceed
- Copy & Paste the URL in the new tab to Token Art Tools
- You should see a black square and can generate new hashes to change it's color
- Work directly on the
src/sketch.jsandsrc/features.jsfiles to create art - Press
CTRL + Cin the terminal to shut down the server when you're done
The sketch.js script is running as a module to allow for file imports. Having separate files makes local development a lot easier - code formatting / highlights, files for quick testing ideas, etc. - however some on-chain platforms will require that you make all code inline (one file) when deploying. To modify this project from imports to inline code, simply do the following:
- Remove all imports and place code/strings in your
sketch.jsfile - Remove the
type="module"from the script tag in theindex.htmlfile - Remove any
windowfunction assignments at the bottom of thesketch.jsfile
This directory contains starter scripts for various libraries or techniques. Simply copy/paste the contents into the script.js file to use them as a starting point.