The science
Mass m on a massless spring (constant k, natural length l0) hung from a fixed point; polar coordinates (r, θ), θ from the downward vertical:
m(r̈ − rθ̇²) = m g cosθ − k(r − l0) − b ṙ
m(rθ̈ + 2ṙθ̇) = −m g sinθ − b rθ̇
These follow from the Lagrangian L = ½m(ṙ² + r²θ̇²) − ½k(r−l0)² + m g r cosθ; b is viscous drag. Small motions have two frequencies: stretching ωr = √(k/m) and swinging ωθ = √(g/req), req = l0 + mg/k. Because the swing couples to the stretch through the term rθ̇² (centrifugal) and the Coriolis term, when ωr ≈ 2ωθ energy is pumped back and forth between bouncing and swinging (an autoparametric resonance; k = 3mg/l0 gives exactly 2:1). Large swings are chaotic-looking.
Integrated with classical RK4, step 1/600 s. The energy ledger is E + Wdrag = const.
Simplifications: massless spring (no coil mass or spring waves), ideal linear spring (no coil-bind), a point bob, linear drag and no air buoyancy. The spring is drawn as a schematic helix. Art (bob, ceiling beam, wall) was rendered in Blender (Cycles) and drawn on a Canvas.