An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# people-in-elevator

![](http://ichef-1.bbci.co.uk/news/200/media/images/63356000/jpg/_63356837_dice_thinkstock.jpg)
> 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