Skip to content

Saganaki22/Swarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸฆŸ Swarm by DrBaph

An interactive pointer swarm simulation where a mesmerizing group of pointers follows your cursor, creating dynamic and chaotic patterns.

social1

๐ŸŽฎ Features

  • Interactive Swarm Behavior: Watch as particles dynamically follow your cursor
  • Responsive Design: Experience across all devices and screen sizes
  • Mobile Support: Touch-friendly controls
  • Food Placement: Click or tap anywhere to drop food and attract the swarm
  • Pause Function: Press spacebar to Pause animation
  • Reset Function: Press 'R' to reset the simulation
  • Customizable Settings: Adjust particle count, speed, and behavior through the control panel
  • Inverted Colors: Toggle between light and dark modes

๐Ÿš€ Try It Out

Visit Swarm by DrBaph to experience the simulation.

๐Ÿ› ๏ธ Controls

  • Mouse Movement: Guide the swarm
  • Click: Drop food
  • Spacebar: Pause
  • R Key: Reset simulation
  • Control Panel: Adjust simulation parameters

๐ŸŽจ Customization

Use the control panel to adjust:

  • Particle Count
  • Speed
  • Particle Size
  • Attraction Force
  • Avoidance Radius
  • Cohesion Strength
  • Randomness
  • Mouse Avoidance
  • Color Inversion

๐Ÿ”ง Technologies Used

  • Three.js for WebGL rendering
  • Dat.GUI for control interface
  • JavaScript for particle physics
  • HTML5 Canvas for rendering
  • CSS3 for styling

๐Ÿ“ License

Copyright (c) 2025 DrBaph

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

๐Ÿ”— Links

๐Ÿค Contributing

While this is primarily a personal project, feel free to:

  1. Fork the repository
  2. Create a feature branch
  3. Submit a pull request

๐Ÿ“ž Contact

Find me on Instagram for questions or collaborations.