Voronoi Art with Generated Points

Voronoi Art with Generated Points

Voronoi diagram is a partition of a plane into regions close to each of a given set of points in the plane. There are many algorithms and tools to construct a Voronoi diagram, given a set of points. One of the best tools I have come across is the one made by Alex Beutel (https://alexbeutel.com/webgl/voronoi.html). It also has a facility where you could specify your own set of points and get the diagram generated. After playing with it a bit, I thought it would be cool to generate the points with different functions using a program and see how the Voronoi diagram would be for each of the sets.

I wrote some code to create the points using various functions. You can find the source code here: https://github.com/rmadhuram/voronoi-dist.

1. Points on a grid

No alt text provided for this image

2. Honeycomb

If we displace the alternate row of points by half the distance between adjacent points, we get a nice honeycomb pattern.

No alt text provided for this image

3. Points on a circle with center

No alt text provided for this image

4. Points on concentric circles with center

No alt text provided for this image

5. Circles on a grid

No alt text provided for this image

6. Points on a spiral

No alt text provided for this image

7. Triangle

No alt text provided for this image

8. Circles over a circle

No alt text provided for this image

9. Points on a sine curve

No alt text provided for this image

10. Points on two perpendicular lines

No alt text provided for this image

11. Sierpinski

No alt text provided for this image

12. Angel Function

Points on the angel curve I discovered earlier (https://geekraj.com/?p=1056)

No alt text provided for this image

13. Combination pattern

No alt text provided for this image

Let me know if you made other cool designs!

Abeneth S

Engineer | IoT & AI Enthusiast | Space Science Researcher | Certified Project Management Professional (PMP)?

3 年

Reminds me of the Veritasium video of Kepler and his ingenious Infinite pattern conundrum Source: https://youtu.be/48sCx-wBs34

Caroline Christian

Art of Rice Writing - ancient micro art in a new form.

3 年

Absolutely beautiful! Genius stuff, well done, Madhu!?

要查看或添加评论,请登录

Raj Madhuram的更多文章

  • It just seems like Eliza!

    It just seems like Eliza!

    There is a story behind every contest win! I am sharing some of my experiences before I forget them :), hoping it would…

    23 条评论
  • Getting Started with Graphics Programming

    Getting Started with Graphics Programming

    Drawing things on a computer is really fascinating. In fact, it was one of the first things I figured out to do when I…

    10 条评论
  • Why Coding Skills Matter?

    Why Coding Skills Matter?

    In this era of plug and play, copy/paste programming, many programmers do not take the time to hone their coding…

    23 条评论
  • Header Bidding on the Rise!

    Header Bidding on the Rise!

    Today out of curiosity I was checking the trends on how header bidding is being adopted by Publishers. I was looking at…

  • Header Bidding Explained

    Header Bidding Explained

    Header bidding (also known as pre-bidding) is a term in the ad industry that is gaining a lot of momentum. In this…

    4 条评论

社区洞察

其他会员也浏览了