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

https://github.com/moeki0/pandemicjs


https://github.com/moeki0/pandemicjs

Last synced: 10 months ago
JSON representation

Awesome Lists containing this project

README

          

# Pandemicjs

Pandemicjs is a simple pandemic simulation.

![Image](https://github.com/moekidev/pandemicjs/blob/main/docs/image.gif)

## 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
})
```