Fractal3 Program
-
This program draws repeating pictures by recursion.
-
The method draw() is recursively called
with a set of parametes specifying a square area.
Each call of this method is processed as follows.
-
The area is subdivided into four square areas,
and draw() is called for each square area
whose width and height are each a half of the width or height of
the previous square area.
-
A rectangle whose width and height are each one half of the width
or height of the square area is drawn at the center of the square area.
Source Code of the Fractal3 Program
(Graphical)
Back
Home