Create an educational fractal animation video starting from a straight line, with the following recursive process: 1. **Initial State**: - Show a horizontal line segment (length L). 2. **Iteration 1**: - Divide the line into two equal segments at its midpoint. - Remove the right segment completely. - Replace the removed segment with a regular octagon: * The octagon's width must exactly match the removed segment's length (L/2). * Place it centered on the original right segment's position. * Orient one side parallel to the original line direction. 3. **Recursion Rule**: - Apply the same process to every new line segment (including all sides of the octagon): a. Divide each segment at its midpoint. b. Remove its right half. c. Replace with a scaled-down regular octagon (width = current segment length / 2). 4. **Visualization Depth**: - Animate 3 full iterations: * Iteration 0: Initial line (blue) * Iteration 1: Octagon replaces right half (red) * Iteration 2: Each octagon side splits → new octagons (green) * Iteration 3: Further subdivision (yellow) **Critical Specifications**: - Use **2D vector animation** with smooth transitions between steps. - Scale octagons precisely: Width(n) = Initial Length / 2ⁿ - Color-code by iteration depth (blue→red→green→yellow). - Add dynamic labels: "Step 0: Initial Line", "Step 1: First Replacement", etc. - End with an overview showing fractal self-similarity.

视频信息