go to previous page   go to home page   go to next page

Answer:

Three.


Sierpinski Gasket

Sierpinski Gasket
Click on the Image

Now look at the above figure. It is an equilateral triangle that has its triangular center cut out. That results in three equilateral triangles, which have their centers cut out. Each of those triangles have their center cut out. And so on.

The figure is a Sierpinski Gasket, a fractal drawn using recursion. It is a classic fractal, described the mathematician Sierpinski in 1915, although known previously.


QUESTION 2:

What JavaFX class could you use to draw a single blue triangle such as the one below?

Solid Triangle

go to previous page   go to home page   go to next page