Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bfollington/fxhash-shadowcljs-template
quil + shadow-cljs + fxhash generative art
https://github.com/bfollington/fxhash-shadowcljs-template
fxhash generative-art quil shadow-cljs
Last synced: about 2 months ago
JSON representation
quil + shadow-cljs + fxhash generative art
- Host: GitHub
- URL: https://github.com/bfollington/fxhash-shadowcljs-template
- Owner: bfollington
- Fork: true (shimmering-void/noire)
- Created: 2021-11-16T01:38:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-19T11:14:37.000Z (almost 3 years ago)
- Last Synced: 2024-06-08T05:35:00.878Z (3 months ago)
- Topics: fxhash, generative-art, quil, shadow-cljs
- Language: Clojure
- Homepage:
- Size: 46.9 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fxhash + shadow-cljs + quil quickstart
A light `shadow-cljs` template to create generative art with [quil](http://quil.info/) for the [fxhash](https://www.fxhash.xyz/) platform.
You'll need `Java`, `node` and `npm` installed (`yarn` also works).
# Setup + Development
`npm i` or `yarn` to install dependencies
`npm run dev` launches a live-reloading dev environment at `http://localhost:8020/`
### Calva
This project works with `calva`, make sure to select `shadow-cljs` then check the box next to `:app` and connect to `:app` for your REPL.
### fxhash
The fxhash host exposes two useful variables, `fxhash` and `fxrand`, which are clojureified in the `starter.fx-hash` namespace as `(fx-hash)` and `(fx-rand)`.
See the [fxhash guide](https://www.fxhash.xyz/articles/guide-mint-generative-token).
We also expose a method to register features of your token via `(register-features {:feat-a true})` in the same namespace.
### index.html + main.css
Both these files (located in the `public/` folder) can be edited freely so long as you preserve the `fxhash` snippet and the filepaths.
If you rename the root namespace from `starter` make sure to update the call to `starter.quil.init()` in `index.html`.
## Packaging + Release
`npm run release` will build & package into `fxhash-release.zip`, ready to upload to the site.
## Tips
It's a regular quil sketch, so refer to the [quil API docs](http://quil.info/api) and the [fxhash guide](https://www.fxhash.xyz/articles/guide-mint-generative-token) for further guidance.