Chaikin's Algorithm Demonstration

Iterations: 0

Instructions

  1. Click on the canvas to create points for your initial polygon.
  2. Press the "Iterate" button to apply Chaikin's algorithm.
  3. Use the "Clear" button to start over.
  4. The iteration count is displayed below the buttons.

Chaikin's algorithm smooths the polygon by creating new points between existing points, moving them slightly inward.

On each iteration:

For a pair of adjacent points, two new points are calculated:

* One at 1/4 of the distance from the first point to the second.

* Another at 3/4 of the distance from the first point to the second.

These new points replace the original pair.