Use the buttons on the bottom to reset.

CC Attribution ShareAlike

Coronavirus simulation

Roughly simulates an outbreak using different social distances. The rules are simple: Sick people can only pass on sickness to healthy people, but with enough time they'll recover and be immune. Play around with the variables at the top to explore how it can spread in different environments. Inspired by this article: https://www.washingtonpost.com/graphics/2020/world/corona-simulator/?fbclid=IwAR1tGUaApSRIXYCArDRx3kra6xkTNUkh4k4EWonp0d0XOvU2P9z7pVqiOcQ
Use the buttons on the bottom to reset.
e.g., mouse, keyboard
e.g., visualization, fractal, mouse
Learn more about Creative Commons
Join Plus+ to change privacy settings
  • main.js
  • person.js
Select mode or a template
Centers sketch and matches the background color.
Prevents infinite loops that may freeze the sketch.
    This will be the default layout for your sketches
    Easy on the eyes
    It will show up when there is an error or print() in code
    Potential warnings will be displayed as you type
    Closes parenthesis-like characters automatically as you type

    Controls
    Play
    Ctrl+Enter
    Code
    Ctrl+Shift+Enter
    Save
    Ctrl+S
    Interface
    Fullscreen
    Ctrl+Alt+F
    Switch Layout
    Ctrl+Alt+L
    Settings
    Ctrl+Alt+.
    Editor
    Tidy Code
    Ctrl+B
    Multiple Cursors
    Ctrl+Click
    Duplicate Line/Selection
    Ctrl+Shift+D
    Move Line
    Alt+↑/↓
    Select Multiple
    Ctrl+D
    Find in Code
    Ctrl+F
    Find Next
    Ctrl+G
    Find Previous
    Ctrl+Shift+G

    See More Shortcuts

    Join Plus+ for private sketches, version history, 1GB space, custom embeds, and more!