diff --git a/.github/skills/interactive-figures/SKILL.md b/.github/skills/interactive-figures/SKILL.md index 39bec98b..acde3ab2 100644 --- a/.github/skills/interactive-figures/SKILL.md +++ b/.github/skills/interactive-figures/SKILL.md @@ -1,18 +1,18 @@ --- name: interactive-figures -description: Create, modify, embed, format, or diagnose client-side interactive figures and WebAssembly (qMRust / Rust) or Observable JS (OJS) simulations in Quarto book chapters. +description: Create, modify, embed, format, or diagnose client-side interactive figures using Observable JS (OJS) or self-contained HTML/Canvas 3D iframe visualizations in Quarto book chapters. --- -# Interactive Figures with Quarto, Observable JS, and WebAssembly +# Interactive Figures with Quarto ## Summary -This project embeds interactive, client-side scientific visualizations and simulations directly into book chapters. Readers can manipulate parameters (e.g., via sliders and numeric inputs) and observe real-time model updates. +This project embeds interactive, client-side scientific visualizations and simulations directly into book chapters. All computation runs entirely in the reader's web browser without a server-side computational kernel, using **two complementary patterns**: -All computation runs entirely in the reader's web browser without requiring a server-side computational kernel by leveraging two complementary patterns: +1. **Pattern A — Observable JS (OJS) & Observable Plot (Default for 2D):** Use for analytical equations, standard 2D scientific curves, and reactive parameter sweeps with sliders/inputs. Shares page typography and responsive width natively with no `_quarto.yml` resource entries needed. +2. **Pattern B — Self-Contained HTML / Canvas 3D (` +::: + +::: {.content-visible unless-format="html"} +![](images////-static.png){fig-alt="Accessible description of the static fallback." width="90%"} +::: + +Concise caption explaining the geometry and controls (e.g., drag to rotate, zoom, or toggle overlays). +::: +``` + +### Interaction & Geometric Standards +- **Equal scales / orthonormal camera**: When illustrating 3D geometric spaces (such as CIE $XYZ$), use an orthographic camera with an orthonormal basis and equal world-unit scales on all axes so angles and foreshortening are geometrically faithful. +- **Controls & accessibility**: Support pointer drag (orbit), pinch or `+`/`-` (zoom), keyboard navigation when the canvas is focused (arrow keys to rotate, `Home` to reset), a **Reset view** button, `title` on the ` +::: -![Monochromatic lights trace out the spectrum locus on the unit plane $x + y + z = 1$.](images/human/06-color-metrics/chromaticity/cie-xy-chromaticity-3d.png){#fig-chromaticity-geometry} +::: {.content-visible unless-format="html"} +![](images/human/06-color-metrics/chromaticity/xy-plane-3d-static.png){fig-alt="Gray xy normalization plane meeting all three positive XYZ axes at one, with the spectrum locus plotted on the plane." width="90%"} +::: -Geometric construction of the CIE chromaticity coordinates on the plane $x + y + z = 1$ before orthographic projection onto the $(x, y)$ plane. +The xy chromaticity plane and spectrum locus in XYZ space, shown with equal axis scales. In the HTML version, drag to rotate and use the controls to zoom or show a radial projection from the origin. ::: -The spectrum locus is fundamental because it forms the outer boundary of the chromaticity coordinates for all physical lights. This property follows directly from a geometric rule of chromaticity diagrams: the chromaticity of an additive mixture of two lights always lies on the straight line segment connecting their individual chromaticities (see @nte-chromaticity-mixture). Because every physical light is a non-negative mixture of spectral lights, the chromaticity of any real light must lie inside the convex hull of the spectrum locus, bounded below by the straight "line of purples" connecting the short- and long-wavelength ends of the spectrum. +The spectrum locus shown on the plane is fundamental because it forms the outer boundary of the chromaticity coordinates for all physical lights. This property follows directly from a geometric rule of chromaticity diagrams: the chromaticity of an additive mixture of two lights always lies on the straight line segment connecting their individual chromaticities (see @nte-chromaticity-mixture). Because every physical light is a non-negative mixture of spectral lights, the chromaticity of any real light must lie inside the convex hull of the spectrum locus, bounded below by the straight "line of purples" connecting the short- and long-wavelength ends of the spectrum. + +The approximate color appearance across the CIE 1931 $(x, y)$ chromaticity diagram is illustrated schematically in @fig-chromaticity-appearance. White and neutral grays fall near the center of the diagram. The saturated spectral lights lie along the outer boundary. + +![Schematic illustration of color appearance across the CIE 1931 $(x, y)$ chromaticity diagram.](images/human/06-color-metrics/chromaticity/CIExy1931-blackbody.png){#fig-chromaticity-appearance width="50%"} + ::: {.callout-note title="Chromaticity of the mixture of two lights" collapse="true" #nte-chromaticity-mixture} The chromaticity coordinate of an additive mixture of two lights lies on the straight line segment connecting their chromaticities. @@ -86,17 +94,13 @@ $$ As the relative intensities of the two lights vary, $\mathbf{c}_3$ sweeps out the line segment connecting $\mathbf{c}_1$ and $\mathbf{c}_2$ in the $(x, y)$ chromaticity diagram. ::: -### Commonly used features of the chromaticity diagram +### Common terms associated with the chromaticity diagram {#sec-chromaticity-terms} We plot these values by projecting the plane orthographically onto the $(x, y)$ axes. This produces the standard two-dimensional **CIE $(x, y)$ chromaticity diagram** (@fig-chromaticity-appearance). Several classic colorimetric concepts and engineering tools are described on the chromaticity diagram. **Blackbody (Planckian) locus** As the temperature of a blackbody radiator increases from $2000\text{ K}$ to $9000\text{ K}$, its spectral power distribution shifts toward shorter wavelengths, tracing a smooth arc from orange-red through neutral white to bluish-white near the center of the chromaticity diagram (@fig-chromaticity-appearance). -The approximate color appearance across the CIE 1931 $(x, y)$ chromaticity diagram is illustrated schematically in @fig-chromaticity-appearance. White and neutral grays fall near the center of the diagram—where the blackbody locus traces the chromaticities of thermal radiators across color temperatures—while saturated spectral hues lie along the outer boundary. - -![Schematic illustration of color appearance across the CIE 1931 $(x, y)$ chromaticity diagram.](images/human/06-color-metrics/chromaticity/CIExy1931-blackbody.png){#fig-chromaticity-appearance width="50%"} - -**Complementary wavelengths** are defined as a pair of monochromatic lights whose additive mixture can match a chosen reference white (such as CIE D65). (@fig-chromaticity-complementary). **Dominant wavelength** is defined by a ray from the reference white point through a test light's chromaticity out to the spectrum locus (@fig-chromaticity-dominant). The fractional distance along the segment from white to the boundary quantifies the excitation **purity**. +**Complementary wavelengths** are defined as a pair of monochromatic lights whose additive mixture can match a chosen reference white (such as CIE D65; @fig-chromaticity-complementary). **Dominant wavelength** is defined by a ray from the reference white point through a test light's chromaticity out to the spectrum locus (@fig-chromaticity-dominant). The fractional distance along the segment from white to the boundary quantifies the excitation **purity**. ::: {#fig-chromaticity-complementary-dominant layout-ncol=2} ![Pairs of monochromatic wavelengths whose additive mixtures pass through the D65 white point are complementary.](images/human/06-color-metrics/chromaticity/045-complementary-colors.png){#fig-chromaticity-complementary} @@ -106,7 +110,7 @@ The approximate color appearance across the CIE 1931 $(x, y)$ chromaticity diagr Complementary wavelengths and dominant wavelength constructions on the CIE $(x, y)$ chromaticity diagram. ::: -### Display chromaticity gamuts {#sec-chromaticity-gamuts} +### Display gamuts {#sec-chromaticity-gamuts} One of the most common and practical uses of chromaticity coordinates is to visualize the range of colors a display can produce (@sec-display-color-matching). The two-dimensional chromaticity gamut follows directly from the two-light mixture rule (@nte-chromaticity-mixture): any non-negative additive combination of three primary lights ($R$, $G$, and $B$) lies inside the **triangle** whose vertices are the chromaticities of the three primaries (@fig-chromaticity-gamut). @@ -117,13 +121,13 @@ One of the most common and practical uses of chromaticity coordinates is to visu ![The chromaticities of three display primaries ($R, G, B$) form the vertices of a triangle enclosing all chromaticities the display can reproduce.](images/human/06-color-metrics/chromaticity/047-display-gamut-triangle.png){#fig-chromaticity-gamut width="75%"} ### Display gamut vs. human vision -![Comparison of some RGB and CMYK color gamut on a CIE 1931 xy chromaticity diagramagainst the full CIE 1931 chromaticity diagram of human vision. By BenRG and cmglee - CIE1931xy blank.svg, https://en.wikipedia.org/wiki/Gamut CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=32158329](images/human/06-color-metrics/chromaticity/cie-xy-gamuts-industry.png){#fig-chromaticity-multiple-gamuts width="75%"} +![Comparison of several RGB and CMYK color gamuts on the CIE 1931 $(x, y)$ chromaticity diagram against the full human visual gamut (source: BenRG and cmglee, [Wikimedia Commons](https://commons.wikimedia.org/w/index.php?curid=32158329), CC BY-SA 3.0).](images/human/06-color-metrics/chromaticity/cie-xy-gamuts-industry.png){#fig-chromaticity-multiple-gamuts width="75%"} ::: Visualizing display color reproduction limits as triangles in the CIE $(x, y)$ chromaticity diagram. ::: -The triangle, defined by can be reproduced by the display; any chromaticity outside the triangle would require a negative weight on at least one primary (@eq-display-primary-weights) and is out of gamut. Keep two caveats in mind when interpreting these chromaticity triangles: +Any chromaticity inside the triangle defined by the three primaries can be reproduced by the display; any chromaticity outside the triangle would require a negative weight on at least one primary (@eq-display-primary-weights) and is out of gamut. Keep two caveats in mind when interpreting these chromaticity triangles: 1. **Chromaticity omits luminance.** The $(x, y)$ triangle is a two-dimensional projection of the three-dimensional color solid swept out over the valid range of primary intensities. The projection does not show how the range of achievable chromaticities shrinks near the display's peak luminance (where primaries saturate) or near its black level (where ambient flare and dark light dominate). 2. **Displays have primary gamuts; sensors do not.** While a three-primary display is physically restricted to the convex triangle of its emitters (@fig-chromaticity-multiple-gamuts), a camera sensor does not emit primaries—it is designed to respond to light across the visible spectrum. People sometimes use the phrase "sensor gamut," which has never seemed like a good idea to me. The meaningful engineering question for a sensor is how accurately its responses can be transformed into the human visual encoding—a topic we return to later. @@ -132,40 +136,52 @@ The triangle, defined by can be reproduced by the display; any chromaticity out Almost right away, engineers noted that the $(x, y)$ diagram has an important practical shortcoming: equal distances on the chart do not correspond to equal perceptual differences. A large upper region of the $(x, y)$ diagram appears green with relatively little change in perceived hue across long distances, whereas in the blue and purple regions a small step produces a large change in color appearance (@fig-chromaticity-appearance). -This was demonstrated in a very compelling set of measurements from Kodak Laboratories as part of a large color research program led by David Macadam. His experimental measurements included an analysis of how discriminable colors were from one another in different parts of the xy-chromaticity plane. The methods Macadam used were designed to summarize discriminability as an elliptical curve, based on the covariance of multiple color match settings. These curves are called the *Macadam ellipses*. - -![Macadam ellipses plotted for one subject, "PGN". The ellipses are superimposed on the CIE 1931 xy chromaticity diagram, and they are plotted at ten times their actual size. Source: CC BY-SA 3.0, https://commons.wikimedia.org/w/index.php?curid=173591](images/human/06-color-metrics/chromaticity/CIExy1931_MacAdam.png){#fig-cie-xy-macadam width=60%} +This was demonstrated in a very compelling set of measurements from Kodak Laboratories as part of a large color research program led by David MacAdam [@macadam1942-ellipses]. His experimental measurements included an analysis of how discriminable colors were from one another. He made his measurements in the constant-Y plane (equiluminance). The participants made multiple matches to a target, and MacAdam used the standard deviation of the settings in different directions within the plane to define an ellipse. This ellipse measures the equal-discriminability of the lights in the plane. The shape and size of these ellipses, now called the *MacAdam ellipses*, differ greatly between different positions in the plane. -Notice that the size of the ellipses varies greatly with chromaticity, being especially large in the green region of the chromaticity diagram. +![MacAdam ellipses plotted for one subject, "PGN"[^PGN]. The ellipses were measured on a constant Y plane, but they are commonly plotted on the CIE 1931 $(x, y)$ chromaticity diagram at ten times their actual size (source: [Wikimedia Commons](https://commons.wikimedia.org/w/index.php?curid=173591), CC BY-SA 3.0).](images/human/06-color-metrics/chromaticity/CIExy1931_MacAdam.png){#fig-cie-xy-macadam width="60%"} -In response to this shortcoming, alternative chromaticity coordinates have been proposed that make chromaticity differences are a bit more perceptually equal. +[^PGN]: From the acknowledgements in @macadam1942-ellipses: "It is a pleasure to acknowledge again the essential contributions of Mr. Perley G. Nutting, Jr., whose critical interest in the ideas involved in this research was much greater and more helpful than is implied by the fact that he was the principal observer." ### $(u', v')$ chromaticity coordinates {#sec-uv-chromaticity} +The size and orientation of the MacAdam ellipses vary greatly with chromaticity, being especially large in the green region of the chromaticity diagram (@fig-cie-xy-macadam). In response to this shortcoming, alternative chromaticity coordinates were proposed with the goal of making a representation whose differences are more perceptually equal. -The **CIE 1976 $(u', v')$ Uniform Chromaticity Scale (UCS)** diagram, an influential alternative to $(x, y)$. This chromaticity mapping rescales the data into a plane where the perceptual differences are more evenly matched to perception. The formula for $u'$ and $v'$ is +The **CIE 1976 $(u', v')$ Uniform Chromaticity Scale (UCS)** diagram[^uv1960] is an influential alternative to $(x, y)$. @eq-uv-chromaticity is also a projective mapping, but in this case we measure how each ray intersects the plane $X + 15Y + 3Z = 1$. Also, notice that the projection onto the $(u', v')$ plane is followed by axis scale factors of $4$ and $9$ (@fig-uv-plane-interactive). Differences in these coordinates are more closely matched to perceptual differences. The formula for $u'$ and $v'$ is + +[^uv1960]: The 1976 UCS is an improvement upon an earlier CIE 1960 UCS definition, $u = u'$ and $v = \frac{2}{3}v' = \frac{6Y}{X + 15Y + 3Z}$. $$ u' = \frac{4X}{X + 15Y + 3Z}, \qquad v' = \frac{9Y}{X + 15Y + 3Z} . $$ {#eq-uv-chromaticity} -Like the $(x, y)$ transformation, @eq-uv-chromaticity is a projective mapping: scaling a tristimulus vector by any positive constant $k$, so that $(X, Y, Z) \mapsto k(X, Y, Z)$, produces the exact same $(u', v')$ coordinate. Geometrically, each ray from the origin intersects the tilted plane $X + 15Y + 3Z = 1$ in tristimulus space, and the intersection is projected onto the $(u', v')$ plane with axis scale factors of $4$ and $9$ (@fig-uv-projection). Because this mapping is still a central projection onto a plane, additive mixtures of lights continue to lie on straight line segments, and display gamuts remain triangles. +You can rotate and inspect the $(u', v')$ normalization plane $X + 15Y + 3Z = 1$ and its spectrum locus in three dimensions in @fig-uv-plane-interactive. -::: {#fig-uv-projection layout-ncol=2} -![A ray from the origin through $(X, Y, Z)$ intersects the plane $X + 15Y + 3Z = 1$.](images/human/06-color-metrics/chromaticity/uv-chromaticity-plane.png){#fig-uv-plane} +::: {#fig-uv-plane-interactive} -![Schematic color appearance and Planckian locus in the CIE 1976 $(u', v')$ UCS diagram (source: [Wikimedia Commons](https://commons.wikimedia.org/w/index.php?curid=3770098), public domain).](images/human/06-color-metrics/chromaticity/CIE_1976_UCS-wikipedia-blackbody.png){#fig-uv-blackbody-geometry} +::: {.content-visible when-format="html"} + +::: -Geometric construction of the CIE 1976 $(u', v')$ chromaticity coordinates via the plane $X + 15Y + 3Z = 1$ (left) and the resulting $(u', v')$ Uniform Chromaticity Scale diagram (right). +::: {.content-visible unless-format="html"} +![](images/human/06-color-metrics/chromaticity/uv-plane-3d-static.png){fig-alt="Gray u prime v prime normalization plane meeting the XYZ axes at one, one fifteenth, and one third, with the spectrum locus plotted on the plane." width="90%"} ::: -Both chromaticity representations discard luminance, and thus it is common to inform users about luminance using just the $Y$ value. Thus, $Yxy$ and $Yu'v'$ are commonly reported. It is possible to invert those three values to recover the $(X,Y,Z)$ values. +The u′, v′ normalization plane and spectrum locus in XYZ space, shown with equal axis scales. In the HTML version, drag to rotate and use the controls to zoom or show a radial projection from the origin. +::: -The $(u', v')$ improves the uniformity of two-dimensional chromaticity spacing, but it is far from perfect[^uv1960]. To quantify the full perceptual difference between two colors that may differ in both luminance and chromaticity, we need a three-dimensional space that incorporates adaptation to the scene white point and the nonlinear brightness sensitivity of human vision. +@fig-uv-blackbody-geometry provides a sense of the color appearance at different locations in the $(u',v')$ plane, along with the position of the blackbody locus. -[^uv1960]: The 1976 UCS is an improvement upon an earlier CIE 1960 UCS definition, $u = u'$ and $v = \frac{2}{3}v' = \frac{6Y}{X + 15Y + 3Z}$. +![Schematic color appearance and Planckian locus in the CIE 1976 $(u', v')$ UCS diagram (source: [Wikimedia Commons](https://commons.wikimedia.org/w/index.php?curid=3770098), public domain).](images/human/06-color-metrics/chromaticity/CIE_1976_UCS-wikipedia-blackbody.png){#fig-uv-blackbody-geometry width="70%"} + +Because this mapping is still a central projection onto a plane, additive mixtures of lights continue to lie on straight line segments, and display gamuts remain triangles. + +Both chromaticity representations discard luminance, which is an important feature of the light. When describing a light, it is common to inform users about luminance by including the $Y$ value. Thus, you will often see people describing a light with three values, $Yxy$ or $Yu'v'$. It is straightforward to convert those three values to recover the $(X,Y,Z)$ values. ## CIELAB {#sec-cielab} +The $(u', v')$ improves the uniformity of two-dimensional chromaticity spacing, but it is far from perfect. To quantify the full perceptual difference between two colors that may differ in both luminance and chromaticity, we need a three-dimensional space that incorporates adaptation to the scene white point and the nonlinear brightness sensitivity of human vision. + + + We really want a three-dimensional equaliztion, not just in the chromaticity plane. Adams-Nickerson data. diff --git a/chapters/images/human/06-color-metrics/chromaticity/uv-plane-3d-static.png b/chapters/images/human/06-color-metrics/chromaticity/uv-plane-3d-static.png new file mode 100644 index 00000000..be6c6461 Binary files /dev/null and b/chapters/images/human/06-color-metrics/chromaticity/uv-plane-3d-static.png differ diff --git a/chapters/images/human/06-color-metrics/chromaticity/uv-plane-3d-static.svg b/chapters/images/human/06-color-metrics/chromaticity/uv-plane-3d-static.svg new file mode 100644 index 00000000..c664b2d9 --- /dev/null +++ b/chapters/images/human/06-color-metrics/chromaticity/uv-plane-3d-static.svg @@ -0,0 +1,486 @@ + +Spectrum locus on the u prime v prime normalization plane, equal XYZ scales +The CIE 1931 2 degree spectrum locus is normalized onto X plus 15Y plus 3Z equals one, plotted with an orthographic isometric camera and a common scale for all three axes. Colored wavelengths and a dashed purple closure lie on a gray triangular plane. Axis tick spacing is 0.1 on every axis. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +X + + + +Y + + + + + +Z +O + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +420 nm + + +460 nm + + +490 nm + + +520 nm + + +580 nm + + +650 nm +Spectrum locus + +Line of purples + + + + +1 +1/15 +1/3 + \ No newline at end of file diff --git a/chapters/images/human/06-color-metrics/chromaticity/uv-plane-3d.html b/chapters/images/human/06-color-metrics/chromaticity/uv-plane-3d.html new file mode 100644 index 00000000..1ebde1de --- /dev/null +++ b/chapters/images/human/06-color-metrics/chromaticity/uv-plane-3d.html @@ -0,0 +1,179 @@ + + + + + +Interactive chromaticity normalization plane + + + +
+
+
+ + +
+
+ + + +
+
+
+ Interactive 3D chromaticity diagram. Enable JavaScript to rotate it. + +
+

A gray triangular plane intersects positive XYZ axes at X equals 1, Y equals one fifteenth, and Z equals one third. All three axes use the same scale. The colored spectrum locus and dashed line of purples lie on the plane. The optional ray passes from the origin through a normalized point on the plane.

+ + + + +
+ + + + diff --git a/chapters/images/human/06-color-metrics/chromaticity/xy-plane-3d-static.png b/chapters/images/human/06-color-metrics/chromaticity/xy-plane-3d-static.png new file mode 100644 index 00000000..dd6e4073 Binary files /dev/null and b/chapters/images/human/06-color-metrics/chromaticity/xy-plane-3d-static.png differ diff --git a/chapters/images/human/06-color-metrics/chromaticity/xy-plane-3d-static.svg b/chapters/images/human/06-color-metrics/chromaticity/xy-plane-3d-static.svg new file mode 100644 index 00000000..03cc56ea --- /dev/null +++ b/chapters/images/human/06-color-metrics/chromaticity/xy-plane-3d-static.svg @@ -0,0 +1,452 @@ +CIE xy chromaticity plane with spectrum locus and equal XYZ scales + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +X +1 + + +Y +1 + + +Z +1 +O + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +420 + +490 + +520 + +650 + \ No newline at end of file diff --git a/chapters/images/human/06-color-metrics/chromaticity/xy-plane-3d.html b/chapters/images/human/06-color-metrics/chromaticity/xy-plane-3d.html new file mode 100644 index 00000000..36ec6052 --- /dev/null +++ b/chapters/images/human/06-color-metrics/chromaticity/xy-plane-3d.html @@ -0,0 +1,178 @@ + + + + + +Interactive xy chromaticity plane + + + +
+
+
+ + +
+
+ + + +
+
+
+ Interactive 3D chromaticity diagram. Enable JavaScript to rotate it. + +
+

A gray triangular plane intersects positive XYZ axes at X equals 1, Y equals 1, and Z equals 1. All three axes use the same scale. The colored spectrum locus and dashed line of purples lie on the plane. The optional ray passes from the origin through a normalized point on the plane.

+ + + + +
+ + + + diff --git a/chapters/optics-04-lenses.qmd b/chapters/optics-04-lenses.qmd index 9f5715cc..c1904294 100644 --- a/chapters/optics-04-lenses.qmd +++ b/chapters/optics-04-lenses.qmd @@ -160,7 +160,7 @@ Diffraction limited thin lens issues. Roughly same as the one above. https://chatgpt.com/c/6748e492-0310-8002-8da3-89a1517a6062 --> -![A lens can be approximated as many small prisms. The outline shows a spherical surface on the entrance and exit side.](images/optics/07-principles/thinlens-assembled.png){#fig-thinlens-prism fig-align="center" width="60%"} +![A lens can be approximated as many small prisms. The outline shows a spherical surface on the entrance and exit side.](images/optics/07-principles/thinlens-assembled.png){#fig-thinlens-assembled fig-align="center" width="60%"} Expanding on this idea, we can stack a collection of prisms to gather more of the rays. Or, more likely, we might polish a glass surface to have two spherical surfaces, forming a continuous form of the stacked prisms. The entrance aperture of this lens can capture much more light than a pinhole, and it guides the rays to converge. Spherical lenses are quite popular because they are easy to manufacture. Using Snell's Law it is relatively straightforward to calculate the refraction for a ray arriving at any location on the sphere [^optics-intro-3]. diff --git a/chapters/optics-05-thinlens.qmd b/chapters/optics-05-thinlens.qmd index 9e344fdc..294abd77 100644 --- a/chapters/optics-05-thinlens.qmd +++ b/chapters/optics-05-thinlens.qmd @@ -131,7 +131,7 @@ You can see from [@eq-imagedistance] that as $d_o$ becomes much larger than $f$, $$ d_i = \frac{f k f}{(k-1) f} = f \frac{k}{k-1} -$$ {#eq-imagedistance} +$$ {#eq-imagedistance-k} This script plots the image distance as a function of object distance expressed as a multiple of focal length. diff --git a/local.bib b/local.bib index d6b179fa..76ad4543 100644 --- a/local.bib +++ b/local.bib @@ -98,7 +98,7 @@ @book{Goodman2022-fv } @article{Banks2015-yr, title = "Why do animal eyes have pupils of different shapes?", - author = "Banks, Martin S and Sprague, William W and Schmoll, J\"{u}rgen and Parnell, Jared A Q and Love, Gordon D", + author = {Banks, Martin S and Sprague, William W and Schmoll, J{\"{u}}rgen and Parnell, Jared A Q and Love, Gordon D}, journal = "Sci. Adv.", publisher = "American Association for the Advancement of Science (AAAS)", volume = 1, @@ -148,7 +148,7 @@ @article{Catrysse2023-kx } @article{Froch2025-fa, title = "Beating spectral bandwidth limits for large aperture broadband nano-optics", - author = "Fr\"{o}ch, Johannes E and Chakravarthula, Praneeth and Sun, Jipeng and Tseng, Ethan and Colburn, Shane and Zhan, Alan and Miller, Forrest and Wirth-Singh, Anna and Tanguy, Quentin A A and Han, Zheyi and B\"{o}hringer, Karl F and Heide, Felix and Majumdar, Arka", + author = {Fr{\"{o}}ch, Johannes E and Chakravarthula, Praneeth and Sun, Jipeng and Tseng, Ethan and Colburn, Shane and Zhan, Alan and Miller, Forrest and Wirth-Singh, Anna and Tanguy, Quentin A A and Han, Zheyi and B{\"{o}}hringer, Karl F and Heide, Felix and Majumdar, Arka}, journal = "Nat. Commun.", publisher = "Springer Science and Business Media LLC", volume = 16, @@ -754,4 +754,15 @@ @book{grassmann2000-extension address = {Providence, RI}, note = {Translation of the 1862 \emph{Die Ausdehnungslehre}}, isbn = {978-0821820315} +} + +@article{macadam1942-ellipses, + title={Visual sensitivities to color differences in daylight}, + author={MacAdam, David L}, + journal={Journal of the Optical Society of America}, + volume={32}, + number={5}, + pages={247--274}, + year={1942}, + publisher={Optica Publishing Group} } \ No newline at end of file