Generative Art Experiments using Haskell, GHCJS, and Reflex (FRP)
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.obelisk/impl
backend
common
comparison
config
devel
finalout
frontend
imgs
nix
presentation
static/css
.gitignore
README.md
cabal.project
default.nix
index.html
release.nix

README.md

Generative Art Experiment

image

Inspired by Xavier Ho's presentation at 2018 Lambda Jam, and this article by Benjamin Kovach, this repo contains a demonstration of the new reflex-dom-svg and reflex-dom-canvas libraries.

This is all built using [nix] and the [obelisk] builder from [obsidian systems]. This repo is in a high state of flux and is heavily influencing further development of the aforementioned libraries. It is part show-case, part testing, and part cookbook.

If you want to build this package you will need to use nix, as the dependency requirements for GHCJS and some of the dependencies can get a bit wild.

To compile to JS and use the provided index.html (Recommended).

$ git clone https://github.com/mankyKitty/fantastic-waddle
$ cd fudge
$ nix build -f release.nix
$ <browser> $(pwd)/index.html &

To run a server using obelisk:

$ ob run

This will build everything and give you a locally running server to host the examples. The manner in which Reflex orchestrates the instructions to the frontend is not terribly efficient for the purposes of animation at this scale. So some brittleness is expected.