DEV Community

Ahmod Musa
Ahmod Musa

Posted on

String Theory — Physics Elastic String

A luminous elastic string stretched across your screen. Grab it, pull it, let it snap back. Built with a Verlet integration physics engine — 60 nodes, constraint solving, and glow layering. No canvas libraries, no frameworks. Pure JS + Canvas. Double-click anywhere on the string to give it a quick pluck. Made for the April 2026 CodePen Challenge: Code Words — String.

Top comments (0)