, 1024); // 初始缩放
            let frameCount = 0;
            const MAX_FRAME = 200;
            const MAX_ITER = 80;

            // FPS统计
            let currentFps = 0, avgFps = 0;
            let frameTimes = [];

            // 判断点是否属于主心形体或周期2气泡
            function isInMainCardioidOrBulb(x, y) {
                // 主心形体条件
                const temp = x - 0.25;
                const q = temp * temp + y * y;
                if (q * (q + temp) <= 0.25