adamisntdead / snell

A Two.js Visualization of Snell's Law

Home Page:https://adamisntdead.github.io/snell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snell

A Javascript Visualization of Snell's Law 📓 🔦

Snell's Law is a formula used to describe the relationship between the angles of incidence and refraction, when referring to light or other waves passing through a boundary between two different isotropic media.

The Law

Snell's law states:

The ratio of the sines of the angles of incidence and refraction are equivalent to the ratio of phase velocities in the two media, or equivalent to the reciprocal of the ratio of the indices of refraction

Deploying To Github Pages

# Build With Parcel
parcel build index.html --public-url ./

# Push to GH Pages
git subtree push --prefix dist origin gh-pages

About

A Two.js Visualization of Snell's Law

https://adamisntdead.github.io/snell


Languages

Language:JavaScript 92.7%Language:HTML 7.3%