GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - TheBeastCoding/boids: Animating the swarm intelligence of birds

BranchesTags
Open more actions menu

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
Boids.html
Boids.html
 
 
README.md
README.md
 
 

Repository files navigation

boids

Animating the swarm intelligence of birds

Running the code

Download the Boids.html file. Double clicking the HTML file should run in the browser. If it does not automatically open in a browswer, right click the file and select 'open with' and choose a browser.

Tuning the simulation

  • width: change the width of the display canvas on HTML
  • height: change the height of the display canvas on HTML
  • nodeCount: changes how many nodes are simulated. Note: for slower systems, reducing this will improve the frame rate.
  • nodeSize: how tall a boid is drawn on the canvas (as a triangle)
  • nodeWidth: how wide a boid is drawn on the canvas (as a triangle)
  • perceivedDist: how far a given boid can 'see' to determine the cohesion vector
  • seperationDist: how far a given boid can 'see' to determine the separation vector
  • alignmentDist: how far a given boid can 'see' to determine the alignment vector
  • separationWeight: importance of the separation vector (can be any number but a percent is recommended)
  • cohesionWeight: importance of the cohesion vector (can be any number but a percent is recommended)
  • alignmentWeight: importance of the alignment vector (can be any number but a percent is recommended)
  • delta: determines the rate of change to the new recommended orientation (stabilizes abrupt changes to the boid orientation)

About

Animating the swarm intelligence of birds

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.