hexagon_chaos


hexagon_chaos, an Octave code which produces a fractal image inside a hexagon by repeatedly computing the barycenter of the triangle formed by the iteration point and a randomly chosen side of the hexagon.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

hexagon_chaos is available in a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

hexagon_chaos_test

cross_chaos, an Octave code which creates a dot-plot of a cross by repeatedly applying a randomized linear transformation to a starting point.

dragon_chaos, an Octave code which creates a dot-plot of a dragon by repeatedly applying a randomized linear transformation to a starting point.

fern_chaos, an Octave code which applies a randomized linear map to a starting point to compute a dot-plot of the Barnsley fractal fern.

leaf_chaos, an Octave code which creates a dot-plot of a leaf by repeatedly applying a randomized linear transformation to a starting point.

levy_dragon_chaos, an Octave code which creates a dot-plot of the Levy dragon by repeatedly applying a randomized linear transformation to a starting point.

octave_plots, an Octave code which uses plotting to illustrate a mathematical structure, such as an iterative map, a fractal, a curve or surface.

menger_sponge_chaos, an Octave code which creates a dot-plot of the 3D Menger sponge by repeatedly applying a randomized linear transformation to a starting point.

sierpinski_carpet_chaos, an Octave code which creates a dot-plot of the Sierpinski carpet by repeatedly applying a randomized linear transformation to a starting point.

sierpinski_triangle_chaos, an Octave code which creates a dot-plot of the Sierpinski triangle by repeatedly applying a randomized linear transformation to a starting point.

tree_chaos, an Octave code which creates a dot-plot of a tree by repeatedly applying a randomized linear transformation to a starting point.

Reference:

  1. John D Cook,
    Random Hexagon Fractal,
    https://www.johndcook.com/blog/2026/04/09/random-hexagon-fractal/
    Posted 09 April 2026.

Source Code:


Last revised on 23 April 2026.