Blenra
Optimized for: Gemini / ChatGPT / Claude

Advanced AI Prompt for Interactive Constellation Particle Systems

Use this engineered prompt to drastically optimize your workflow and output.

Required Variables

  • [MAX_DISTANCE]
  • [LINE_OPACITY]
  • [PARTICLE_VELOCITY]
  • [NODE_COLOR]
interactive-constellation-threejs-background.txt
Act as a Front-End Developer. Build an interactive 'constellation' background in Three.js where particles are connected by lines if they are within [MAX_DISTANCE] of each other. The particles should move at [PARTICLE_VELOCITY] with random direction vectors. Implement a dynamic line drawing system using THREE.LineSegments with a maximum opacity of [LINE_OPACITY]. Use a [NODE_COLOR] for the points. Optimize by implementing a spatial partitioning grid or a simple distance-check throttle to prevent CPU spikes.

Example Output

"The AI will generate a script that manages both a Points object and a LineSegments object, updating their geometry attributes in every frame."