Write HTML/CSS/JS code that animates a double pendulum using gravity-based equations. The motion should be chaotic and continuous, and the last bob should leave a fading trail showing its path.
02
粒子引力
互動性 · 滑鼠吸引 · 考驗動態響應
Prompt
Create an HTML/CSS/JS animation of 300 particles attracted to the mouse cursor with gravity and elastic bounce off walls. Particles should leave short fading trails and vary in color based on their speed.
03
洛倫茲吸引子
3D 混沌 · 緩慢旋轉 · 視覺最震撼
Prompt
Animate a Lorenz attractor in HTML canvas using its chaotic differential equations. Render it as a continuous glowing 3D-projected line that slowly rotates on a black background, with the trail fading over time.
04
生命遊戲
Conway's Game of Life · 細胞自動機 · 考驗邏輯完整性
Prompt
Build Conway's Game of Life in HTML/CSS/JS with a random starting grid. Add smooth cell transitions and a neon color scheme where older living cells glow brighter. Include a play/pause button.
05
流體墨水
點擊加墨 · 流場擴散 · 最難整好
Prompt
Create a real-time fluid simulation in HTML canvas. Clicking or dragging adds colorful ink that diffuses and swirls using a velocity field. The colors should blend smoothly and fade gradually over time.