qHilbert icon indicating copy to clipboard operation
qHilbert copied to clipboard

Generate trace gif?

Open MaltedChoco opened this issue 1 year ago • 3 comments

I was looking for a way to generate a hilbert curve for a wallpaper, and I was stunned by the trace gif in the readme. I compiled the project and I can't seem to figure out how to generate one of those gifs, do you know how I could do so?

MaltedChoco avatar Dec 23 '24 02:12 MaltedChoco

This is the script I used to generate the the main gifs! https://github.com/Wunkolo/qHilbert/blob/master/scripts/Hilbert.py

If you mean the red ones, that uses a modification where I just map the Hilbert curve index to the intensity in the red channel and offset it(with a modulo I believe) https://github.com/Wunkolo/qHilbert/commits/master/scripts/Hilbert.py I think one of these revisions are the one you are looking for. It's been quite some time 😅

Wunkolo avatar Dec 26 '24 16:12 Wunkolo

This is the script I used to generate the the main gifs! https://github.com/Wunkolo/qHilbert/blob/master/scripts/Hilbert.py

If you mean the red ones, that uses a modification where I just map the Hilbert curve index to the intensity in the red channel and offset it(with a modulo I believe) https://github.com/Wunkolo/qHilbert/commits/master/scripts/Hilbert.py I think one of these revisions are the one you are looking for. It's been quite some time 😅

Thank you! I was originally looking for the code to generate the "HilbertRed-Trace.gif" but the older revisions seems to produce a nice looking colorful curve too. Have a nice day!

MaltedChoco avatar Dec 26 '24 18:12 MaltedChoco

For sure! I wrote some code here that does a similar technique to that gif that you may reference from as well! https://www.shadertoy.com/view/XtGBDW

Wunkolo avatar Dec 26 '24 18:12 Wunkolo