A smooth fog-of-war overlay: a small canvas with resolution pixels per tile, scaled up
with linear filtering, so fog edges blur into the next cell instead of stepping by whole
tiles. Draw it above terrain and characters, and call refresh when visibility changes.
Needs a DOM canvas; paintFogPixels is the same shading without one.
A smooth fog-of-war overlay: a small canvas with
resolutionpixels per tile, scaled up with linear filtering, so fog edges blur into the next cell instead of stepping by whole tiles. Draw it above terrain and characters, and callrefreshwhen visibility changes. Needs a DOM canvas;paintFogPixelsis the same shading without one.Example