MicroSim Template
Embed This MicroSim
Copy this iframe to embed this MicroSim in your website:
1 | |
Run the MicroSim in Fullscreen
About This MicroSim
This is a template MicroSim that demonstrates the standard structure and formatting for creating new interactive simulations. Use this as a starting point when developing new MicroSims for the data science course.
How to Use This Template
- Copy the entire
templatedirectory to create a new MicroSim - Rename the directory to your MicroSim name (use kebab-case)
- Update
metadata.jsonwith your MicroSim's information - Replace
main.htmland the JavaScript file with your simulation code - Update this
index.mdfile with your documentation
Sample Prompt for Creating a MicroSim
Prompt
Create a single file p5.js sketch. Draw a green circle on a 600x400 canvas with a radius of 200.
References
- p5.js Reference - p5.js Documentation - JavaScript library used to build interactive simulations
- Processing Wiki on Positioning Your Canvas - Guide for canvas positioning