I will explore the project directory structure to understand the existing setup.
I will check package.json to see what packages are already installed.
I will install lucide-react for UI icons.
I will read index.html and src/index.css.
I will inspect src/index.css.
I will now create the TypeScript definitions in src/types/phoenix.ts to define particle models, color themes, rebirth stages, and configuration options.
I will create src/utils/themes.ts containing the color palettes, temperature-to-RGBA interpolation logic, and theme presets.
I will create src/utils/audio.ts with a procedural Web Audio synthesizer for ambient fire crackling, harmonic humming drone, wingbeat woosh, and rebirth explosion sound effects.
I will fix the unused property in src/utils/audio.ts.
I will clean up the remaining reference in src/utils/audio.ts.
I will create src/utils/phoenixGeometry.ts to compute the parametric anatomical structure of the Phoenix (crown crest, beak, head, eyes, neck, chest core, articulated flappable wings, and 3 long flowing tail plumes).
I will remove the unused prevX and prevY variables in src/utils/phoenixGeometry.ts.
I will create src/utils/particleEngine.ts to manage the particle physics simulation, falling flame shedding dynamics, rebirth stage state machine, and color rendering buffers.
I will remove the unused RebirthStage import from src/utils/particleEngine.ts.
I will create src/components/RebirthIndicator.tsx to display the required 30-second rebirth cycle status, live countdown, progress bar, instant rebirth trigger, and poetic mythic stage badge.
I will create src/components/Header.tsx for the top navigation bar, featuring real-time FPS monitor, active particle count, audio toggle, snapshot capture, and UI control switches.
I will create src/components/AnatomyLegend.tsx to provide visual annotations and mythic lore explaining the phoenix's anatomical features.
I will create src/components/ControlPanel.tsx to provide rich customization controls for particle density, color themes, wing beat speed, rebirth interval, gravity/wind, and mouse interactive modes.
I will create src/components/PhoenixCanvas.tsx to handle the rendering canvas, high-performance animation loop, mouse/touch physics interactions, and wallpaper screenshot export.
I will create the main src/App.tsx coordinating state, canvas events, keyboard shortcuts, control panels, audio triggers, and responsive layout.
I will update index.html with an appropriate title and metadata.
I will update src/index.css to include custom animations and styles.
I will test build the project to verify that there are no compilation or TypeScript errors.
I will run a final build test to ensure everything is perfect.
我已经为您制作完成了**「凤凰浴火 · 纯 Canvas 粒子艺术」**交互体验页面。
🌟 核心特色与技术实现
-
纯 Canvas 粒子系统与温度着色机制:
- 数千颗粒子形态构建:粒子系统采用运动骨骼与流体力学湍流,精准勾勒凤凰形态,包含核心层、主羽层、外翼羽以及飘散流星层。
- 温度物理映射(Temperature Heat Map):每个粒子拥有独立的动态温度值 T∈[0.0,1.0]:
- 超高温(T>0.85):白炽极热聚变白金光芒(White-Hot Core)
- 高温(0.6<):炽烈金黄色与曜阳金焰(Golden Solar)
Files built: src/types/phoenix.ts, src/utils/themes.ts, src/utils/audio.ts, src/utils/phoenixGeometry.ts, src/utils/particleEngine.ts, src/components/RebirthIndicator.tsx, src/components/Header.tsx, src/components/AnatomyLegend.tsx, src/components/ControlPanel.tsx, src/components/PhoenixCanvas.tsx, src/App.tsx, index.html, src/index.css