@hackage hylogen0.1.0.4

a tiny EDSL for live-coding fragment shaders

H Y L O G E N

Hylogen is a tiny language embedded in Haskell for live-coding visuals.

Setup

cabal update
cabal install hylogen

Usage

-- ./Main.hs
module Main where

import Hylogen


main = putStrLn . toGLSL $ Vec4 (a, a, a, 1)
  where
    a = cos(X uv * sin(time/ 10) * 10 + X mouse)
      + sin(Y uv * sin(time / 10) * 10 + Y mouse)

run hylogen

hylogen Main.hs

play!

Go to localhost:5678 in your browser.

Changes in Main.hs will now be propagated in realtime to your shader!

inspiration