recursive_pricklypear

  • Observer Design Pattern example
  • Recursion
  • JPanel, JFrame
  • Java Swing for GUI dialog

Output:

Recursion depth controls how many shapes will be drawn.

Colors can be picked with color picker dialog.

Color of last shape, represents the fruit portion and will be a different color.

Ratio of child radius to parent radius.

Button to "redraw" shape.