/la-habra

La Habra: The Shape of Things to DOM

Primary LanguageJavaScriptMIT LicenseMIT

License Build Status

La Habra: The Shape of Things to DOM

gif of livecoded visuals

La Habra is the tool I use to live code visuals as one third of Codie. They look like those backgrounds up there.

This repo includes the latest version of the app on master, as well as saved final states from performances in dated branches.

The relevant code is all in ui_src/ui. It creates two timers (one for the frame and one to refresh the drawing), provides some timing and drawing shortcut functions, and includes some animation helpers that enable me to do terrible things to the stylesheet from the main Clojurescript file. Also built-in are some basic colors and patterns.

I expect the app to evolve as I perform more, but I don’t promise it will ever be helpful to anyone else.

***NOW AVAILABLE*** Some more notes on the API and how it works.

***ALSO RELEVANT*** Snippets for Atom.

La Habra?

I like to say the visuals I make are mostly inspired by sheets I had as a kid. La Habra is where we lived when I got those sheets (and my first Nintendo). It also translates to there will be, which I think is the promise of live coding. When we start it isn’t yet, but there will be shapes and music — in a few minutes.

Live Code?

Live Code events feature algorithmic music and visuals created as the performance runs. Usually an evening of performances is called an algorave.

Check out Live Code NYC’s twitter account to find out about the latest algoraves in New York and Live Coding Research and Algorave for more global shenanigans.

Running it

npm install electron-prebuilt -g # install electron binaries

lein cooper                      # compile cljs and start figwheel
electron .                       # start electron from another terminal

This project is built on a cljs/electron app template from Max Gonzih