https://github.com/moeki0/pandemicjs
https://github.com/moeki0/pandemicjs
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/moeki0/pandemicjs
- Owner: moeki0
- Created: 2022-01-07T13:53:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-07T14:02:45.000Z (over 4 years ago)
- Last Synced: 2025-07-31T13:37:10.787Z (11 months ago)
- Language: JavaScript
- Size: 28.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pandemicjs
Pandemicjs is a simple pandemic simulation.

## Installation
```
npm i -D pandemicjs
```
or
```
yarn add -D pandemicjs
```
or
```html
import { Pandemic } from 'https://cdn.jsdelivr.net/npm/pandemicjs@1.0.0/dist/index.esm.min.js'
```
## Usage
```html
```
```js
import { Pandemic } from 'pandemicjs'
new Pandemic(',world', {
n: 800,
fps: 30,
play: false, // you can manipulate a virus source
hospital: false,
splashDistance: 30,
infectionRate: 0.1,
onsetPeriod: 100,
antiBodyPeriod: 200
})
```