Haskell library for 2D interactive graphics.
- All spatial units are normalised by default. e.g.,
0.0
is all the way to the left/top, and1.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. AfromPixels pixels
function is provided. - The default coordinate system has the origin in the top-left corner.
- Resizing the window does not behave properly on Windows.
- Add gradient and texture support.
- Add font/text layouting and rasterization with FreeType.
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