Skip to content

Feature: colors per ray, ray length changed in place - #17

Merged
StackEnjoyer merged 10 commits into
mainfrom
feature/bmo-render-settings
Oct 23, 2026
Merged

StackEnjoyer merged 10 commits into
mainfrom
feature/bmo-render-settings

Conversation

@StackEnjoyer

@StackEnjoyer StackEnjoyer commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

Features

  • Sources start with color = :wavelength: each ray in the color of its own wavelength
  • Card "Color": "wavelength" is a mode, switching to a fixed color and back keeps the plots
  • beam_kwargs: accepts color = :wavelength and (:wavelength, alpha)
  • Box length: changes the drawn length in place, beam and overlays are not rendered again
  • Infrared and ultraviolet sources are drawn darker, 30 % instead of 50 % brightness
  • Changing the color during a background solve starts that solve again

Doc changes

  • live_view.md, components.md: colors per ray, length changed in place
  • Agent skill: API.md, VISUALIZATION.md updated

Internal changes

  • _wavelength_color replaced by wavelength_color of BeamletOptics

Bugfixes

  • A group of astigmatic beamlets that a view starts with is drawn in the colors of its wavelengths, like every other source and like one added with add_component!.

Internal changes

  • Compat BeamletOptics = "0.14", version 0.3.0.
  • BeamletOptics 0.14 removed retracing: the live view calls solve_system! directly, _solve_from_start! is gone.

Hugo Uittenbosch and others added 4 commits October 5, 2026 14:03
…endering the beam again

`_render_settings!` changes the settings of the render handles of a beam via
`BeamletOptics.render_settings!`: the handles, their plots and the overlays
stay, hidden, dimmed and clipped as they are.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… by its wavelength

A source starts with `color = :wavelength` of BeamletOptics instead of one
color taken from its first ray, such that the beams of a group with several
wavelengths and the beams behind a prism get their own colors. The page
"Color" sets the color via `BeamletOptics.render_settings!`: the handles and
their plots stay, and the mode "wavelength" is read from the handle.
`_wavelength_color` is replaced by `BeamletOptics.wavelength_color`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Hugo Uittenbosch and others added 6 commits October 7, 2026 12:03
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
render_settings! with the setting color and the per-vertex colors of live
beam handles come with BeamletOptics 0.14.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BeamletOptics 0.14 removed retracing: solve_system! has no keyword retrace
and resets every beam before it traces it. _solve_from_start!, which did
both for the live view, is replaced by solve_system!.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wavelengths

Like every other source, and like an astigmatic beam group that is added
with add_component!; so far they kept the default color of BeamletOptics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ttings

# Conflicts:
#	docs/src/components.md
#	src/LiveSources.jl
@StackEnjoyer
StackEnjoyer merged commit 2a83cff into main Oct 23, 2026
0 of 3 checks passed
@StackEnjoyer
StackEnjoyer deleted the feature/bmo-render-settings branch October 23, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant