Julia Set

by Tuğrul Yazar | October 10, 2012 10:33

Today’s fractal is the Julia Set, the amazing simplicity of chaos. There are lots of applets and articles on the internet about this fractal[1]. You can generate this with the iteration of a basic function many times and placing points on the complex plane. I developed a Grasshopper implementation in 2012. Also, this was my first study on complex numbers. At each iteration, the detail level increases. I utilized a common brute-force approach, distributing a grid of points, converting them to complex numbers, using the expression (usually in the z2 + c form, where c is a constant complex number and z is the variable one). Then check the modulus of the resulting complex number against a value (usually 2 or 3). I used a VB.net component to calculate the expression. Python was very slow compared to VB.net.

julia set

This Grasshopper definition generates the Julia Set fractals with several input parameters. The user can modify the number of iterations, c and d variables, and also the formula itself. You can generate the infinite possibilities of Julia Set. The outputs are point objects. The code does not generate boundary surfaces or curves. I made the definition with the help of native Grasshopper components and a VB.net code. So, you don’t need to install external add-ons to be able to use the definition.

julia set[2]

You can re-build the definition by looking at the image above. However, you need to code the VB.net script that iterates the formula and spits out a number. Please be careful when opening the definition, they can exhaust your CPU. If you liked this content and want to download and use my code, would you consider being one of my Patreons[3]? Thank you.

julia set
Endnotes:
  1. fractal: https://www.designcoding.net/category/research/fractals/
  2. [Image]: https://www.designcoding.net/decoder/wp-content/uploads/2024/03/Julia-Set-def.jpg
  3. Patreons: https://www.patreon.com/posts/julia-set-100467831?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=postshare_creator&utm_content=join_link

Source URL: https://www.designcoding.net/julia-set/