Repository navigation
feat(optics): add animated ray optics diagrams - #7
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed-image fit Polish before the 0.1.0 tag: - tir labels n\u2081 as the incident slab medium (the same n\u2081 = incident-medium convention as the refraction setup) and states sin \u03b8c = n\u2082/n\u2081 next to the marked critical direction - the prism's Cauchy coefficient scales with n \u2212 1 (B \u2248 0.004 \u00b5m\u00b2 at n = 1.5, BK7-like): realistic crown-glass spread and no dispersion at an index of 1 - magnified conjugates (object between F and 2F, or inside F) shrink the construction so the image arrow and the third ray stay on the diagram - new unit tests cover finite near-F coordinates, the signed mirror focal floor and the \u03b8\u2082 / critical-angle label text; smoke renders the magnified mirror and lens cases, and CI runs the optics smoke against the released 2.3.0 CLI Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MemerGamer
force-pushed
the
feat/optics
branch
from
November 23, 2026 08:05
3f3d664 to
d724f9b
Compare
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Ray Optics (
io.github.animathio.optics), a deterministic ABI 1.1 clip source for animated optics lessons. It includes converging and diverging thin lenses, concave and convex paraxial mirrors, Snell refraction through a slab, a total internal reflection sweep, and wavelength-dependent prism dispersion.Keyframe
progressto reveal rays in propagation order. Solid rays and dashed back-projections distinguish real and virtual images. The README documents the optics conventions and inspector parameters. The bundle includes attribution to Ray Optics Simulation and its Apache-2.0 license.Rebased on
main(Molecule Studio): registry, README table and CI keep both entries, and the Ray Optics smoke now also runs in CI against the released 2.3.0 CLI.Polish before the 0.1.0 tag
tirmedia labels follow the same convention asrefraction(n₁ = incident medium): the slab the ray starts in is n₁ (below the interface) and air is n₂, and the marked critical direction is annotatedsin θc = n₂/n₁ → θc = 41.8°.B = 0.008 µm² · (n − 1), i.e. ≈ 0.004 µm² at n = 1.5), giving a realistic crown-glass spread instead of the previous flint-strength fan, and exactly no dispersion at an index of 1.Screenshots
Verification
-D warnings, and thewasm32-wasip2package build passed.scripts/registry.py validate --offlineandscripts/dry-run-release.sh community/optics(package + SHA-256 + released-host render + index generation) passed.🤖 Generated with Claude Code