How to generate a Penrose tessellation around a given tile?

399 Views Asked by At

Given a starting Penrose tile, I need to build a "spiraling" tessellation around it.

The following picture illustrates the request:

enter image description here

In this example, the starting tile is a "thin rhombus" (the pink one).

I need to write an algorithm which is able to generate the $n$ tiles (and whose output is, for instance a, SVG file), starting from any given tile, and with the possibility of coloring the tiles according to a given sequence of $n$ colors.

Thanks for your help!

NOTE: This post is related to this one.