| name | add-example |
| description | Creates a new runnable Spectra example in examples/ with CMake target and build wiring. Use when demonstrating a feature, adding a minimal repro, or extending the example gallery. |
Add Example
examples/<name>.cpp — follow existing patterns
examples/CMakeLists.txt: add_executable + target_link_libraries(... spectra)
- Include
<spectra/spectra.hpp> or <spectra/easy.hpp>
- One feature per example; inline data unless demonstrating import
./build/examples/<name>
Names: animated_scatter.cpp, live_stream.cpp. Link spectra in CMake.
Visual check: graphical-change-workflow.