An interactive web to demonstrate wave nature of light using Double Slit Experiment.
The bright and dark fringes can be calculated using:
-
Constructive Interference (Bright Fringes):
$$y_n = \frac{n\lambda D}{d}$$ -
Destructive Interference (Dark Fringes):
$$y_n = \frac{(n + \frac{1}{2})\lambda D}{d}$$
The intensity I at any point on screen is given by:
- Framework:
React + Vite - Styling:
Tailwind CSS - Graphics Library:
p5.Js
git clone https://github.com/itzshubhamdev/doubleSlit
cd doubleSlit
npm install
npm run dev