Skip to content

Commit

Permalink
sources; readme tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacbowen committed Feb 5, 2024
1 parent 8f4b76b commit 7ff70b0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# koi pond

live at https://isaacbowen.github.io/koi-pond/
live at [koipond.me](https://koipond.me/)

I wanted to know if the following behavioral logic chunks, combined, would result in natural flocking behavior:
I wanted to know if the following behavioral logic chunks, combined, would result in natural schooling:

1. you have a limited field of vision, in the direction that you're facing.
2. look for your nearest neighbor. then, look for _their_ closest neighbor (staying within your field of vision, and recalling that you can't see _through_ anybody). steer directly into the gap between those neighbors.
3. prefer to keep _some_ breathing room between y'all.
4. allow yourself to be gently guided by some higher-level current. in this case, there's a gentle circular current through the whole pool.
1. your field of vision is limited
2. steer into you-sized gaps
3. respect personal space
4. go with the flow

turns out chatgpt is REALLY GOOD at translating this kind of thing into code. so, so, so much fun.

Expand Down
7 changes: 6 additions & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,17 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<link rel="icon" type="image/png" href="/favicon.png" />

<meta property="og:image" content="/og.png" />
<meta property="og:title" content="koi pond" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://koipond.me/" />
<title>koi pond</title>

<title>koi pond — koipond.me</title>
<!-- https://github.com/isaacbowen/koi-pond -->

<style>
body {
display: flex;
Expand Down

0 comments on commit 7ff70b0

Please sign in to comment.