1

Gravitational Swarm

Dense orbital particle cloud interacting with moving binary gravitational mass centers under softened Newtonian inverse-square laws.

Playground
60 FPS Canvas 2D
Click + Drag to interact with field

Live Parameters

Orbital Stars 1500
Number of particles
Gravitational Constant (G) 900
Mass attraction intensity
ƒ

Mathematical Formulation

77 chars high
Analytical Equation
\mathbf{F}_i = \sum_{j=1}^{2} \frac{G M_j (\mathbf{r}_j - \mathbf{p}_i)}{(\|\mathbf{r}_j - \mathbf{p}_i\|^2 + \epsilon^2)^{3/2}}
Compact Formula
a_x = G * dx / (dx² + dy² + ε²)^(3/2), a_y = G * dy / (dx² + dy² + ε²)^(3/2)
Renderer Logic
const d1Sq = dx1 * dx1 + dy1 * dy1 + 400;
const f1 = G / (d1Sq * Math.sqrt(d1Sq));
vx[i] += dx1 * f1;
vy[i] += dy1 * f1;
Open in Playground Zero Dependencies • Standalone

Mathematical Tags

#gravity #n-body #physics #particles #orbit #celestial
Author: Math Art Core Target: 60 FPS

Export & Embed: Gravitational Swarm

4K PNG Snapshot

High-resolution single frame render

WebM Video (5s Loop)

60 FPS browser-captured stream

HTML Iframe Embed

<iframe src="https://art.fazleyrabbi.xyz/embed/gravitational-swarm" width="500" height="500" frameborder="0" loading="lazy"></iframe>
ESC
↑↓ Navigate Select
25 Mathematical Artworks