Iterated Function System (IFS) is a method to construct fractals through the use of a set of transformations, also called contractive mapping. The transformations are made up using seven variables (e.g. a,b,c,d,e,f) and applied to points in the euclidian plane. Given a point p the new x,y coordinates are calculated as

nx = a * p.x + b * p.y + e;
ny = c * p.x + d * p.y + f;

The transformations must be specified in different lines and variables must be separated by commas.


Barnsley´s Fern:

Transformations:
0,0,0,0.16,0,0,0.01
0.85,0.04,-0.04,0.85,0,1.6,0.85
0.2,-0.26,0.23,0.22,0,1.6,0.07
-0.15,0.28,0.26,0.24,0,0.44,0.07



Tree:

Transformations:
0,0,0,0.5,0,0,0.05
0.42,-0.42,0.42,0.42,0,0.2,0.40
0.42,0.42,-0.42,0.42,0,0.2,0.40
0.1,0,0,0.1,0,0.2,0.15


Author: Gabriel Ambrósio Archanjo