Delaunay triangulation and beautiful visual effects in Latex
Sep 13, 2016
Recently in the world of the Internet this very fancy coloured pattern appeared:
This beautiful pattern has been used in many situations and it is also inspiration of some Android OS background.
If you were wondering how to produce those nice patterns of triangles and shades that you see around the web, here is a nice version scripted in LateX.
The result is nice:
You can obviously change the arrangement of the random dots in the plane, for example by following some mathematical parametric function and then the triangulation happens on the specific parametric surface. For example if you want to arrange the points randomly inside a circle, you have to switch to polar coordinates etc.
To change the colors you should change how the colors are picked from a color map defined in the first lines: