https://github.com/pearmini/m2
Animate a static image based on Malus' Law of Polarization.
https://github.com/pearmini/m2
Last synced: 9 months ago
JSON representation
Animate a static image based on Malus' Law of Polarization.
- Host: GitHub
- URL: https://github.com/pearmini/m2
- Owner: pearmini
- Created: 2025-05-04T18:43:57.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-18T01:12:48.000Z (10 months ago)
- Last Synced: 2025-08-18T03:12:14.729Z (10 months ago)
- Language: JavaScript
- Homepage: https://m2.bairui.dev/
- Size: 1.55 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# M2: Malus Motion
Animate a static image based on Malus' Law of Polarization.
## Inspiration
I’m inspired by [Barrier Grid Animation](https://www.youtube.com/watch?v=3LCP18M0s2o), which create illusion of motion based on the occlusion of light and phenomenon of persistence of vision.

The key concept here is selective visibility—revealing only certain parts of each frame at a time. I want to use light polarization to achieve this selective visibility effect.
## Create a image sheet
Collect a series of images with transparent backgrounds. (The following images are provided by [@Sai](https://www.instagram.com/sairamved/))

Next, divide the area into equal sectors. Each sector will display a different frame of the motion. The resulting image sheet is:

## Apply Malus’ Law of Polarization
Malus’ Law of Polarization is expressed as:
**I = I₀ cos²θ**
Where:
- **I** is the intensity of polarized light after passing through the polarizer.
- **I₀** is the initial intensity of the light.
- **θ** is the angle between the light's polarization direction and the axis of the polarizer.