Searching in the web for information about the affine transformation, I found the one page, which called my attention for the tree that show and is this
but unfortunately do not give information about the algorithm to create it, I would like to ask help to make one the same or very similar, maybe someone knows where to get more information about it. Thanks in advance, here is the link to the page mentioned above