T-Square Fractal in Javascript

less than 1 minute read

Just a fun visual demonstration of a T-Square Fractal. You can update the range of RGB values through which the squares will be generated.

How T-Square Fractals Work

T-Square Fractals are a simple fractal, where each individual box that is generated recursively creates 4 new boxes of smaller size centered at each of its four corners. The result is a pretty cool visualization!

T-Square Fractal
10 - 20
30 - 30
50 - 190

Source Code

You can find my Java implementation here, or the Javascript implementation here (the source code to this page).

Comments