Skip to content

shahank42/spherical-mirror-sandbox

Repository files navigation

Spherical Mirror Sandbox

A web application for visualizing the images formed by the reflected rays of a spherical mirror.

Helpful piece of software for 10th grade CBSE students.

Use it at: https://shahank42.github.io/spherical-mirror-sandbox

Demo

Made using the p5.js library.

Usage

Go to https://shahank42.github.io/spherical-mirror-sandbox and use it.

Alternatively, download the source code and open the index.html file.


Use the left and right arrow keys to change the object distance relative to the mirror.

Use the up and down arrow keys to change the object size.

Video demonstration at: https://www.youtube.com/watch?v=yVPHmyLBquo&t=8s.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.