Fisheye Grid
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jun 20, 2012
A collection of SVG grid lines demonstrates fisheye distortion, where lines warp and magnify around a focal point that follows the mouse cursor. Heavy grid lines from d3.range for x- and y-axis positions are redrawn with path elements, and a d3.fisheye filter transforms each point on the lighter continuous lines based on its distance to the moving center. The example shows raw SVG paths updating dynamically with mouse movement, emphasizing the distortion effect.
AI-generated descriptionThe above grid shows the effect of fisheye distortion. Move the mouse to change the focal point.
gpl-3.0 Licensed