Skip to main content

Brownian Motion

A heavy grain buffeted by solvent molecules, with its random-walk trail and a live mean-squared-displacement fit for the diffusion coefficient.

  • 16.2 KB .bexode
  • 10 live inputs
  • Responsive fit Layout
Live runtime

Use it

The code follows your customizations. Install with npm i exodeui.

import { ExodeUICanvas } from 'exodeui';

// sci-brownian-motion.bexode goes in /public (download it below)
export function SciBrownianMotion() {
  return (
    <ExodeUICanvas
      src="/sci-brownian-motion.bexode"
      fit="Layout"   // responsive: redraws at any container size
      autoPlay
      interactive
      style={{ width: '100%', height: 560 }}
    />
  );
}

Inputs

InputTypeDefaultRange
titleTextBrownian Motion—
tempNumber20040 – 600
countNumber380100 – 520
massBigNumber255 – 100
showSolventBooleantrue—
speedNumber10.1 – 3
accentText#5ee0ffhex colour
accent2Text#ffc65ahex colour
bgText#06080bhex colour
textText#e6edf3hex colour