Introducing Hadertoy: A Haskell Library to Render Shadertoy. - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

tristanC

Greeting folks, I would like to share this hadertoy project with you. Please note that this is my first real project written in Haskell.

It is far from being complete, but it does enough to be usable. If you are interested in this topic, I would be happy to discuss this in more detail and perhaps we could collaborate.

Haskell implementation of Glumpy. Contribute to TristanCacqueray/hadertoy development by creating an account on GitHub.
Hazem

This is great! Congrats on releasing it :D

image.png

P.S. I love the name of the library

Chris Wendt

Coooool!! I managed to get it to run on macOS, super janky though, working on some PRs now.

What a coincidence, my first "real" program was a C# Mandelbrot fractal generator https://github.com/chrismwendt/mandelbrot

image.png

Generates pixel-perfect Mandelbrot fractals. Contribute to chrismwendt/mandelbrot development by creating an account on GitHub.
tristanC

Thank you the feedback, that is great to see it working! The red color indicates the shader resolution didn't get updated properly, perhaps macOS is doing an early resize before the callback is set. Resizing the window manually should fix that.

Chris Wendt

Yup, when connected to an external monitor it renders properly

tristanC

I've added a julia mode where the mandelbrot window can be used as a map to pick julia coordinate. Now that the implementation is complex enough (e.g. it supports multiple windows with event callbacks), I'll look into how to improve the API to avoid code spaghettification.