Skip to main content
100%

Image Processing

✓ Published0🌍 Public
Mmbostock
Last edited Feb 8, 2016
Created on Oct 26, 2010

This example demonstrates real-time image processing on map tiles using Polymaps and HTML5 Canvas. The map loads a static image from a URL and renders it through a custom canvas layer, where each tile’s pixel data is read with `getImageData` and halved in intensity before being written back via `putImageData`. The code uses `po.canvas()` to define the layer, `drawImage` to place the source, and `createImageData` to prepare the output. The result shows a visibly darkened version of the original image across the panning map.

AI-generated description
gpl-3.0 Licensed

Similar vizzes