Back to projectsProject archive

Fractals Project

Recursive fractal visualizer with multiple fractal classes, adjustable depth, and animated growth of the active pattern.

Context

Built as a recursion-centered graphics assignment that evolved from a single-mode fractal viewer into a polymorphic system of fractal implementations.

Problem

The project needed to demonstrate recursion more deeply than a single draw routine, while also making the differences between fractal types visible and interactive.

Solution

The application introduces recursion-level controls, per-level coloring, a Fractal interface with an abstract base class, multiple concrete fractal types, and an animation mode that grows and resets the active fractal.

Key decisions

  • -Refactored each draw mode into its own class so polymorphism became part of the architecture, not just the requirement.
  • -Exposed recursion depth directly on the keyboard to make the algorithm visible during use.
  • -Added animation by gradually increasing depth, which makes the recursive structure easier to perceive.

Key features

  • -Adjustable recursion depth with keyboard controls
  • -Color variation by fractal level
  • -Fractal interface plus abstract base class
  • -Multiple fractal implementations, including a custom design
  • -Animated fractal growth and reset loop

Results

  • -Turns a recursion topic into something visual and easier to explain.
  • -Shows clean use of abstraction and polymorphism in a graphics context.
  • -Makes the archive section feel broader than standard CRUD or scripting work.

Stack

C++RecursionGraphicsOOP

Links