Task8_Question2_HKK
✓ Published1🌍 Public
This visualization demonstrates a real-time collision-detection simulation using a force-directed particle system. The code leverages D3.js’s `forceSimulation` API to compute particle trajectories and render them on an HTML5 Canvas, with the underlying data drawn from a synthetic grid of points. A key feature analyzes pixel-level color data by calling the Canvas `getImageData` method, then dynamically adjusts particle positions and velocities based on detected boundaries, creating a responsive, interactive swarm behavior. The piece highlights the interplay between algorithmic physics and raw raster inspection.
AI-generated descriptionMIT Licensed