Fractal1 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.
-
A rectangle is drawn within the square area.
-
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.
Source Code of the Fractal1 Program
(Graphical)
Back
Home