Skip to main content

Posts

Showing posts from August, 2021

Fill 2D Space with Hilbert Curve

Fill 2D Space with Hilbert Curve

I was introduced to the amazing world of fractals by a coding channel named The Coding Train . I was fascinated by the elegance of the process. It was an amazing mix of math, computer science, coding, and nature, all of which I admire a lot! This project is about such a fractal pattern named Hilbert Curve . I got to know about Hilbert Curve from my university's computer graphics course. As soon as I got introduced to the topic I searched the web for coding it. I coded Hilbert curve with OpenGL in C++ , but it felt clumsy to set it all up. Then I remember The Coding Train and his work on p5js and processing . These libraries were primarily developed for easy use for creative coding. I played around with the libraries but never dedicated to do something serious with it; until now! About the Project Hilbert Curve is a space-filling curve. That means this 1-D line can fill a 2-D space! This fact on its own is amazing! The time I