Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Double Harmonic

Public visualization

Fork of Double Harmonic

0 stars0🌍 Public
KKerim
Last edited Aug 30, 2022
Created on Aug 30, 2022
Forked from Double Harmonic

This example animates a double pendulum system, tracing the motion of two connected masses as they swing around a fixed center point. The code uses `d3.select` to create SVG circles and lines, updating their positions every frame with `setInterval` and `range(1)` to compute the pendulum’s coordinates. It relies on D3 v6’s data joins (`selectAll` and `join`) to render the moving balls, connecting rods, and shadow markers, with an animation loop that advances the angle `t` and the ratio `psi`.

AI-generated description

Double Pendulum inspired by sisyphus table.

Comments

Sign in to join the discussion.

MIT Licensed