Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Three.js Mouse-Trail Particle Emitter
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[EMISSION_RATE] - ✦
[GRAVITY_FORCE] - ✦
[PARTICLE_DECAY] - ✦
[TRAIL_COLOR]
mouse-trail-particle-emitter-threejs.txt
Act as a Senior Interactive Developer. Build a Three.js hero section where particles are emitted from the user's cursor position. Set the [EMISSION_RATE] to create a continuous stream. Apply a [GRAVITY_FORCE] that pulls particles downward and a [PARTICLE_DECAY] rate that shrinks them over time. Use a [TRAIL_COLOR] gradient. The system should use a pool of pre-allocated particles (object pooling) to ensure no garbage collection lag during high interaction.
Example Output
"The AI will provide an object-oriented Three.js solution with a ParticlePool class and logic for updating visibility and scale based on particle age."