@hackage hylogen0.1.0.11

an EDSL for live-coding fragment shaders

H Y L O G E N

Hylogen is a purely functional language embedded in Haskell for live-coding fragment shaders.

Setup

cabal update
cabal install hylogen

Usage

-- ./Main.hs
module Main where
import Hylogen

color = vec4 (a, a, a, 1)
  where
    a = cos(X uvN * sin(time/ 10) * 10 + X mouse)
      + sin(Y uvN * sin(time / 10) * 10 + Y mouse)

main = putStrLn $ toGLSL $ color

1. run hylogen server

hylogen Main.hs

2. play!

Visit localhost:5678 in your browser.

Changes in Main.hs will now be propagated in realtime to your WebGL rendering context!

inspiration

resources

hackage

examples