Opus Motion ★ Star on GitHub

Data · emission-spectrum-lines

Emission spectrum lines

A glowing gas-discharge tube sends light through a slit and a prism; a dark spectrum panel with an nm axis draws bright emission lines at element-specific wavelengths (hydrogen, helium, neon) as a scanner sweeps across, then swaps to the next gas.

A free, MIT-licensed animated chart from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Emission spectrum lines: three frames of the animated chart, start, middle and end
Emission spectrum lines — start, middle and end of the 11.3-second motion.

What Emission spectrum lines is for

Physics and chemistry explainers on atomic spectra, "how we know what stars are made of", element fingerprints, astronomy intros.

  • spectrum
  • emission
  • prism
  • physics
  • chemistry
  • astronomy
  • wavelength
  • light
  • gas tube
  • hydrogen
  • neon
  • science
  • education
  • nm
  • axis

Details

Category
Animated charts & data visualisation
Length
11.3 s (340 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
title subtitle
Colour props
background inkColor
Mood
neon, hud, night
Roles
subject

Use Emission spectrum lines in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add emission-spectrum-lines --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render emission-spectrum-lines --props '{"title":"Atomic fingerprints","subtitle":"Every element glows in its own lines","background":"#0a1024","inkColor":"#e8eeff"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export emission-spectrum-lines --as mp4 --props '{"title":"Atomic fingerprints","subtitle":"Every element glows in its own lines","background":"#0a1024","inkColor":"#e8eeff"}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="emission-spectrum-lines"
  props={{
    title: 'Atomic fingerprints',
    subtitle: 'Every element glows in its own lines',
    background: '#0a1024',
    inkColor: '#e8eeff',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="emission-spectrum-lines"
  props='{"title":"Atomic fingerprints","subtitle":"Every element glows in its own lines","background":"#0a1024","inkColor":"#e8eeff"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "emission-spectrum-lines",
      "props": {
        "title": "Atomic fingerprints",
        "subtitle": "Every element glows in its own lines",
        "background": "#0a1024",
        "inkColor": "#e8eeff"
      }
    }
  ]
}

Emission spectrum lines props

13 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
title"Atomic fingerprints"headline (top-left)
subtitle"Every element glows in its own lines"mono sub-line
gases[{"symbol":"H","name":"Hydrogen","tube":"#ff6fcf","lines":[410,434,486,656]},{"symbol":…gases [{symbol,name,tube (tube glow colour),lines: [wavelength nm, ...]}] one per step
background"#0a1024"backdrop colour
inkColor"#e8eeff"text and axis colour
minNm380left end of the nm axis
maxNm720right end of the nm axis
framesPer100frames per gas (30 fps)
startFrame18frame the first gas lights
showLabelstrueprint the wavelength under each line
seed1unused spare seed
spectrumLabel"EMISSION SPECTRUM"caption after the gas name above the spectrum panel
axisLabel"wavelength (nm)"axis caption under the spectrum panel

Notes & credits

Technique sources:

  • analysis/sheets/r3/v1 (krypton spectrum tube and spectrum panel)