Painless 2D vector graphics, animations, and simulations powered by GLFW (Fork of gloss)
See the codeBrillo hides the pain of drawing simple vector graphics and raster images behind a nice data type and a few display functions.
|
|
|
Getting something on the screen is as easy as:
import Brillo
main = display
(InWindow "Nice Window" (200, 200) (10, 10))
white
(Circle 80)
Explore and run the example projects with stack:
stack run brillo-boids
Once the window is open you can use the following:
animate and simulate functionsplay function.If you're running a pre-built binary on Linux, install the required runtime libraries:
sudo apt-get install libglu1-mesa libglfw3 libwebp7 \
libxcursor1 libxi6 libxinerama1 libxrandr2 libxxf86vm1
sudo dnf install mesa-libGLU glfw libwebp \
libXcursor libXi libXinerama libXrandr libXxf86vm
sudo pacman -S glu glfw libwebp libxcursor libxi libxinerama libxrandr libxxf86vm
Install the development dependencies:
sudo apt-get install libglfw3-dev libglu1-mesa-dev libwebp-dev \
libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
sudo dnf install glfw-devel libXxf86vm-devel
sudo pacman -S glfw libxxf86vm
Contributions are very welcome!
Please test that all the brillo-examples still work
before submitting your pull request.
This library is a fork of gloss and improves upon it in several ways. Check out the CHANGELOG for more details.
Haskell
99.6%
Painless 2D vector graphics, animations, and simulations powered by GLFW (Fork of gloss)
See the codeBrillo hides the pain of drawing simple vector graphics and raster images behind a nice data type and a few display functions.
|
|
|
Getting something on the screen is as easy as:
import Brillo
main = display
(InWindow "Nice Window" (200, 200) (10, 10))
white
(Circle 80)
Explore and run the example projects with stack:
stack run brillo-boids
Once the window is open you can use the following:
animate and simulate functionsplay function.If you're running a pre-built binary on Linux, install the required runtime libraries:
sudo apt-get install libglu1-mesa libglfw3 libwebp7 \
libxcursor1 libxi6 libxinerama1 libxrandr2 libxxf86vm1
sudo dnf install mesa-libGLU glfw libwebp \
libXcursor libXi libXinerama libXrandr libXxf86vm
sudo pacman -S glu glfw libwebp libxcursor libxi libxinerama libxrandr libxxf86vm
Install the development dependencies:
sudo apt-get install libglfw3-dev libglu1-mesa-dev libwebp-dev \
libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libxxf86vm-dev
sudo dnf install glfw-devel libXxf86vm-devel
sudo pacman -S glfw libxxf86vm
Contributions are very welcome!
Please test that all the brillo-examples still work
before submitting your pull request.
This library is a fork of gloss and improves upon it in several ways. Check out the CHANGELOG for more details.
Haskell
99.6%