Cartesian Distortion (Fisheye)
✓ Published0🌍 Public
AAjayyy
Last edited Jun 19, 2018
Created on Jun 19, 2018
A fisheye distortion effect warps a Cartesian grid of vertical lines, magnifying the area around the mouse cursor. The grid spans a 960 by 180 pixel SVG canvas with lines spaced every 16 pixels. The implementation uses a custom `d3.fisheye` extension that provides both a `scale` transformation and a `circular` function, although only the linear x-axis fisheye scale is applied. As the mouse moves, the `focus` of the `xFisheye` scale updates, smoothly redrawing the vertical lines with a magnifying lens effect around the cursor.
AI-generated descriptionBuilt with blockbuilder.org
mit Licensed