Molecules: Visible spectra

HTML5 and Javascript needed.
Light source:
Material:
  1. The top graph shows the intensity spectrum of a light source. You can edit by drawing.
  2. The bottom graph shows the absorption spectrum of a compound, likewise editable.
  3. The column gives an approximation of the transmitted colour (using ~60% grey for black to avoid negative RGB values). Double-click the column to select the transmitted spectrum at that optical depth.