Haskell library for 2D interactive graphics.
0.0
is all the
way to the left/top, and 1.0
is all the way to the right/bottom on the shortest axis.
Pixel units are still supported, and other coördinate transforms are trivial.
A fromPixels pixels
function is provided.Windows, macOS and GNU+Linux users can get GHC and Cabal with GHCUp
This repository/package's structure relies on symlink.
The latest versions of Windows should support this fully.
By enabling Developer Mode on Windows, you should be granted mklink
permission.
Symlinks have been supported since Vista, but needed to be
enabled and needed administrator privileges.
You must have Git set up to treat symlinks correctly, by doing as so:
git config --global core.symlinks true
in the Git CLI/Bash application.
Once in the repository, having completed the prerequisites, one can:
cabal update
cabal build
cabal install
You may need LLVM intsalled and in your $PATH
for the build.
Run the GLFW based test/example program:
cabal run example