@hackage hylogen0.1.0.6

an EDSL for live-coding fragment shaders

  • Installation

  • Dependencies (0)

  • Dependents (0)

H Y L O G E N

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

Setup

cabal update
cabal install hylogen

Usage

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

main = putStrLn $ toGLSL $ color

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

1. run hylogen

hylogen Main.hs

2. play!

Go to localhost:5678 in your browser.

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

inspiration

resources

hackage

examples