-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eb21f21
commit 73194b9
Showing
16 changed files
with
6,492 additions
and
5,406 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
FLOCK_SIZE=750 | ||
MAX_SPEED=2 | ||
MAX_FORCE=0.03 | ||
NEIGHBOR_DISTANCE=50 | ||
DESIRED_SEPARATION=25 | ||
RADIUS=2 | ||
VITE_FLOCK_SIZE=750 | ||
VITE_MAX_SPEED=2 | ||
VITE_MAX_FORCE=0.03 | ||
VITE_NEIGHBOR_DISTANCE=50 | ||
VITE_DESIRED_SEPARATION=25 | ||
VITE_RADIUS=2 |
14 changes: 7 additions & 7 deletions
14
examples/flocking/src/index.html → examples/flocking/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<!-- | ||
Daniel Shiffman's flocking example ported from processing to javascript using HTML5 canvas. | ||
--> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
<title>Flocking</title> | ||
|
||
<style type="text/css"> | ||
html, body { | ||
html, | ||
body { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<canvas id="flocking"></canvas> | ||
<script src="./index.ts" type="text/javascript"></script> | ||
<script type="module" src="./src/index.ts" type="text/javascript"></script> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.