static void draw()
{
static double x, y;
double r;
double a, b, c, d, e, f;
double newx, newy;
int sx, sy;
r = (double)rand() / (double)RAND_MAX;
if (r <= .01) {
a = 0.; b = 0.; c = 0.; d = .16; e = 0.; f = 0.;
} else if (r > .01 && r <= .86) {
a = .85; b = .04; c = -.04; d = .85; e = 0.; f = 1.6;
} else if (r > .86 && r <= .93) {
a = .2; b = -.26; c = .23; d = .22; e = 0.; f = 1.6;
} else {
a = -.15; b = .28; c = .26; d = .24; e = 0.; f = .44;
}
newx = (a * x) + (b * y) + e;
newy = (c * x) + (d * y) + f;
x = newx; y = newy;