3D DNA HELIX Interactive
This interactive visualization depicts a stylized 3D DNA double helix, with two intertwined strands of colored nucleotide pairs (circles connected by lines) that continuously rotate and animate as the central axis twists. Mouse movement changes the helix’s torsion, altering the rotation speed and curve magnitude. The visualization is built with D3.js (version 3.5.5) and the underscore.js library, rendering via SVG. The code generates two sine/cosine-based strands, maps their 3D coordinates using linear scales for x, y, and depth (z), and updates the scene every 25 milliseconds using `setInterval` and D3’s selection/data-binding API, applying color fills from a predefined palette.
AI-generated descriptionA program to show a 3D DNA Helix
Forked from (https://bl.ocks.org/adamhurst/13dd439047b66ee78c45)