hylogen: a tiny EDSL for live-coding fragment shaders

[ graphics, library, mit ] [ Propose Tags ]

a tiny EDSL for live-coding fragment shaders


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.1.0.4, 0.1.0.5, 0.1.0.6, 0.1.0.8, 0.1.0.10, 0.1.0.11, 0.1.0.12, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.1.3, 0.1.2.0, 0.1.2.1, 0.1.2.2, 0.1.2.3, 0.1.3.0, 0.1.3.1, 0.1.3.2, 0.1.4.0, 0.1.4.1, 0.1.5.0, 0.1.5.1
Dependencies base (>=4.8 && <4.9), bytestring, filepath, hinotify, network, process, random, text, websockets [details]
License MIT
Author Sean Lee
Maintainer freshdried@gmail.com
Category Graphics
Home page https://github.com/sleexyz/hylogen
Uploaded by sleexyz at 2016-04-05T05:39:35Z
Distributions NixOS:0.1.5.1
Reverse Dependencies 1 direct, 0 indirect [details]
Executables hylogen
Downloads 15908 total (61 in the last 30 days)
Rating 2.25 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2016-04-05 [all 1 reports]

Readme for hylogen-0.1.0.4

[back to package description]

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