Skip to content

Vivarium

Vivarium

const vi = vivarium();

By default the neighborhood type is "square". You can decide which neighborhood type to use by passing it as an option:

const vi = vivarium("cross");

The available neighborhood types are [square] and [cross].