https://github.com/ssarcandy/people-in-elevator
Simulate people's behavior in elevator using d3.js
https://github.com/ssarcandy/people-in-elevator
Last synced: 11 days ago
JSON representation
Simulate people's behavior in elevator using d3.js
- Host: GitHub
- URL: https://github.com/ssarcandy/people-in-elevator
- Owner: SSARCandy
- Created: 2016-07-14T12:16:33.000Z (almost 10 years ago)
- Default Branch: gh-pages
- Last Pushed: 2017-09-03T13:25:46.000Z (almost 9 years ago)
- Last Synced: 2025-11-13T22:25:12.755Z (8 months ago)
- Language: JavaScript
- Homepage: https://ssarcandy.tw/people-in-elevator/
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# people-in-elevator

> Passengers seem to know instinctively how to arrange themselves in an elevator... like the dots on a die. With each additional passenger, the bodies shift, slotting into the open spaces.
> -- [Why do we behave so oddly in lifts?](http://www.bbc.com/news/magazine-19846214)
This [demo](http://ssarcandy.tw/people-in-elevator) use force layout with negative `charge`, try to simulate people in elevator.
`Left click` to add people
`DEL` to delete people