Fern Fractal

The Barnsley Fern is a fractal named after the British mathematician Michael Barnsley who first described it in his book Fractals Everywhere. He made it to resemble the Black Spleenwort, Asplenium adiantumnigrum.
We generate this fractal using Chaos game, each point constructing this fractal possess appearance probability p and it's equation:
x = a*x + b*y + e;
y = c*x + d*y + f;
Barnsley Fern is generated using four affine transformations, which are represented by the following table:
a  b  c  d  e  f  p 
0.00  0.00  0.00  0.16  0.00  0.00  0.01 
0.85  0.04  0.04  0.85  0.00  1.60  0.85 
0.20  0.26  0.23  0.22  0.00  1.60  0.07 
0.15  0.28  0.26  0.24  0.00  0.44  0.07 
By iterating this function we get pretty good results:
My program iterates till infinity in order to see interactive animation.
You can download program source code written with C++ and OpenGL, working with Windows and MacOS X prior to 10.9, here: LINK