Jack McKew jackmckew.dev

Simulating a virus outbreak with JavaScript  ↦

Jack builds on this post from Harry Stevens on The Washington Post to create an interactive virus outbreak simulator with JavaScript, HTML5, and Canvas. It simulates the effectiveness of lockdowns, social distancing, PPE, and more. Jack shares the code too.

This post will simulate how viruses can spread throughout a community and implement a variety of different parameters to see how these affect the simulation.

Simulating a virus outbreak with JavaScript

Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00