Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/adamisntdead/snell
- Owner: adamisntdead
- Created: 2018-04-14T12:03:04.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-14T12:05:48.000Z (almost 7 years ago)
- Last Synced: 2024-12-12T10:05:18.264Z (2 months ago)
- Topics: physics, physics-simulation, snell, twojs
- Language: JavaScript
- Homepage: https://adamisntdead.github.io/snell
- Size: 144 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```