Crystal Lattice
A 2D Lennard-Jones crystal with strain-coloured bonds and a live radial distribution function. Strike it, pull atoms out, heat it until it melts.
- 16.2 KB .bexode
- 9 live inputs
- Responsive fit Layout
Use it
The code follows your customizations. Install with npm i exodeui.
import { ExodeUICanvas } from 'exodeui';
// sci-crystal-lattice.bexode goes in /public (download it below)
export function SciCrystalLattice() {
return (
<ExodeUICanvas
src="/sci-crystal-lattice.bexode"
fit="Layout" // responsive: redraws at any container size
autoPlay
interactive
style={{ width: '100%', height: 560 }}
/>
);
}Inputs
| Input | Type | Default | Range |
|---|---|---|---|
title | Text | Crystal Lattice | — |
temp | Number | 15 | 2 – 200 |
attract | Number | 1 | 0.3 – 2 |
bonds | Boolean | true | — |
speed | Number | 1 | 0.1 – 3 |
accent | Text | #7cc4ff | hex colour |
accent2 | Text | #ffb454 | hex colour |
bg | Text | #06080b | hex colour |
text | Text | #e6edf3 | hex colour |