Skip to content

About

This is a Microscope simulator vibe coded by DeepSeek V4.1 Flash at Max effort.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Aperture — Virtual Microscope

An interactive compound-microscope simulator that runs entirely in the browser. Four prepared slides are drawn procedurally on canvas; there are no images, fonts, or libraries to download.

Run it

Run 'start.bat' or run 'index.html', and the simulator will start in your browser.

Controls

Action Control
Move the slide Drag the circular field, drag the stage map, or use the arrow keys
Focus Scroll over the field, drag the focus slider, or press + / -
Change objective Click 4×, 10×, 40× or 100×, or press 1–4
Toggle labels Labels button or L
Field guide Field guide button or G
Save a micrograph Capture button or C
Autofocus Auto button or F
Recenter the stage Reset button or R
Help ? button

The 100× objective automatically shows the oil-immersion indicator.

Slides

  • Onion epidermis — acetocarmine-stained cell walls and nuclei
  • Human blood smear — Wright–Giemsa red cells, platelets, and leukocytes
  • Pond water — live paramecia, euglena, diatoms, algae, and detritus
  • Leaf cross-section — epidermis, palisade and spongy mesophyll, stomata, and a vascular bundle

Shareable views

The app accepts URL parameters:

index.html?slide=pond&mag=40&labels=1
  • slide: onion, blood, pond, or leaf
  • mag: 4, 10, 40, or 100
  • labels: 1 to start with structure labels visible

Files

  • index.html — page structure and UI
  • styles.css — layout, eyepiece, controls, responsive styling
  • app.js — state, optics, interaction, URL parameters
  • art.js — shared constants and specimen registry
  • onion-blood.js — onion and blood renderers
  • pond.js — pond organisms, algae, and detritus
  • leaf.js — leaf cross-section renderer
  • labels.js — structure annotations
  • capture.js — 1200 × 1300 micrograph export
  • thumbs.js — specimen thumbnail canvases

About

This is a Microscope simulator vibe coded by DeepSeek V4.1 Flash at Max effort.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages