MicroSim Layout Architecture
Run the MicroSim Layout Fullscreen
Edit the MicroSim on the P5.js editor
About This Diagram
This interactive diagram illustrates the standard two-region architecture used by all MicroSims in this collection. Understanding this layout pattern is essential for creating consistent, professional educational simulations.
Key Concepts
Canvas Structure
Every MicroSim canvas is divided into two distinct regions:
- Drawing Region (top) - Where the visualization/simulation appears
- Control Region (bottom) - Where user interface controls are placed
Standard Dimensions
1 2 3 4 5 | |
Color Scheme
| Region | Background Color | Purpose |
|---|---|---|
| Drawing Region | Alice Blue (#F0F8FF) |
Provides a soft, non-distracting background for visualizations |
| Control Region | White (#FFFFFF) |
Clean background for UI controls |
| Borders | Silver | Subtle separation between regions |
Design Principles
- Separation of Concerns: Visualization and controls are always in separate regions
- Consistent Margins: 25px margins keep content away from edges
- Responsive Width: Canvas adapts horizontally while maintaining fixed height
- Non-Scrolling: MicroSims fit within their iframe without scrollbars
Embedding This MicroSim
You can include this MicroSim on your website using the following iframe:
1 | |
Learning Objectives
After studying this diagram, students will be able to:
- Remember the standard canvas dimension variables used in MicroSims
- Understand the purpose of separating drawing and control regions
- Apply this layout pattern when creating new MicroSims
Related Topics
- Getting Started with MicroSims
- Bouncing Ball - A basic example using this layout
- Template MicroSim - Start here when creating new simulations