Skip to main content
100%

Wave Packet

✓ Published0🌍 Public
KKelvinZCH
Last edited Jun 9, 2017
Created on Jun 9, 2017

This animation shows a red wave packet propagating back and forth across an SVG canvas, wrapped in a semi-transparent blue envelope that traces the pulse’s amplitude. The motion is driven by an explicit time loop with a constant step, reversing direction when the packet reaches the graph’s edge. The code uses d3.line and d3.area with d3.curveBasis to render the signal and envelope paths, while a d3.transition with duration 20 and d3.easeLinear repeatedly restarts itself to update the data. D3 v4 scales map input ranges to screen coordinates.

AI-generated description

This animation is an example for how a wave packet propagates.

forked from <a href='http://bl.ocks.org/pmplewa/'>pmplewa</a>'s block: <a href='http://bl.ocks.org/pmplewa/5d74c40d1be8de700e8bfb0a121d9ff3'>Wave Packet</a>

mit Licensed

Similar vizzes