{"id":30907582,"url":"https://github.com/pearmini/m2","last_synced_at":"2025-09-09T13:52:27.801Z","repository":{"id":310423883,"uuid":"977683152","full_name":"pearmini/m2","owner":"pearmini","description":"Animate a static image based on Malus' Law of Polarization.","archived":false,"fork":false,"pushed_at":"2025-08-18T01:12:48.000Z","size":1623,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-18T03:12:14.729Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://m2.bairui.dev/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pearmini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-04T18:43:57.000Z","updated_at":"2025-08-18T01:12:51.000Z","dependencies_parsed_at":"2025-08-18T03:12:39.454Z","dependency_job_id":"244c11d8-286d-4521-b9f4-7e06ddcfb0d2","html_url":"https://github.com/pearmini/m2","commit_stats":null,"previous_names":["pearmini/m2"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pearmini/m2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pearmini%2Fm2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pearmini%2Fm2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pearmini%2Fm2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pearmini%2Fm2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pearmini","download_url":"https://codeload.github.com/pearmini/m2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pearmini%2Fm2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274307365,"owners_count":25261216,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-09-09T13:52:22.681Z","updated_at":"2025-09-09T13:52:27.765Z","avatar_url":"https://github.com/pearmini.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# M2: Malus Motion\n\nAnimate a static image based on Malus' Law of Polarization.\n\n## Inspiration\n\nI’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.\n\n![horse](img/horse.png)\n\nThe 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.\n\n## Create a image sheet\n\nCollect a series of images with transparent backgrounds. (The following images are provided by [@Sai](https://www.instagram.com/sairamved/))\n\n![series](img/series.png)\n\nNext, divide the area into equal sectors. Each sector will display a different frame of the motion. The resulting image sheet is:\n\n![main](img/main.png)\n\n## Apply Malus’ Law of Polarization\n\nMalus’ Law of Polarization is expressed as:\n\n**I = I₀ cos²θ**\n\nWhere:\n\n- **I** is the intensity of polarized light after passing through the polarizer.\n- **I₀** is the initial intensity of the light.\n- **θ** is the angle between the light's polarization direction and the axis of the polarizer.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpearmini%2Fm2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpearmini%2Fm2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpearmini%2Fm2/lists"}