Radial Pulse (single emission)

by Chantal Roth

HTML

<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width,initial-scale=1" />
  <title>Electron Pulse - Physics Demo</title>
  
  <script>
    window.MathJax = {
      tex: {
        inlineMath: [['$', '$'], ['\\(', '\\)']]
      }
    };
  </script>
  <script async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>

  <style>
    :root {
      --bg: #0f1218;
      --panel: #141a24;
      --text: #e8eefc;
      --accent: #7aa2ff;
      --line: rgba(255, 255, 255, 0.12);
    }
    
    * { box-sizing: border-box; }
    
    html, body {
      height: 100%;
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: system-ui, sans-serif;
      overflow: hidden; 
    }
    
    /* Layout */
    #layout { display: flex; width: 100vw; height: 100vh; }
    
    /* Left Column */
    #visualsCol {
      flex: 1;
      display: flex;
      flex-direction: column;
      border-right: 1px solid var(--line);
      min-width: 0; 
    }
    
    #viewPanel {
      flex: 1;
      background: #000;
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      min-height: 300px;
    }
    
    #topCanvas {
      box-shadow: 0 0 30px rgba(0,0,0,0.5);
      border-radius: 4px;
      cursor: crosshair;
      max-height: 90%; 
      max-width: 90%;
    }
    
    #scopePanel {
      height: 250px; 
      flex-shrink: 0;
      background: var(--panel);
      border-top: 1px solid var(--line);
      display: flex;
      flex-direction: column;
      padding: 10px 15px;
    }
    
    /* Right Column */
    #sidePanel {
      width: 320px;
      flex-shrink: 0;
      background: #11151f;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 15px;
      overflow-y: auto;
    }
    
 ...