           }

            return initialPoints;
        }

        // --- Initialize Visualizers ---
        document.addEventListener('DOMContentLoaded', () => {
            const displayCanvasBaseSize = 280; // Reduced base size a bit for 3 canvases

            new BezierVisualizer({
                containerElement: document.getElementById('example1-container'),
                title: "Example 1: Flat",
                initialPoints: createInitialPoints("default"),
                showSubdividedView: tr