// Leafs drawing
// (c) Johna Smith, 1996
// Method description:
// We take a closed area, which will be main leaf. We want to generate
// four fractal leafs from this one. To make it we need to scale, move and
// rotate main leaf. These transformations described by the following
// x'=ax+by+c, y'=dx+ey+f
// So we need 6 coefficients for each leaf (24 coefficients at all).
// These coefficients are calculated with special mathematical method
// (here are already calculated coefficients)
// To draw whole picture we need an iterational process:
// 1) Take any point within main leaf borders
// 2) Call function iterate for one of 4 leafs (its nuber we select
// randomly but than the larger is leaf's area the higher is probability
// that we call 'iterate' for this leaf
// 3) Then we take transformed point as (x,y) and repeat iterations
// ! This program is NOT optimized for best performance !
// To do so don't use putpixel function - change bytes in video memory directly.