Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/adamisntdead/snell

A Two.js Visualization of Snell's Law
https://github.com/adamisntdead/snell

physics physics-simulation snell twojs

Last synced: 8 days ago
JSON representation

A Two.js Visualization of Snell's Law

Awesome Lists containing this project

README

        

# Snell

> A Javascript Visualization of Snell's Law 📓 🔦

[Snell's Law](https://en.wikipedia.org/wiki/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
```