I'm drawing a scene on an html canvas. The user can resize the canvas, which causes the scene to be redrawn at a different scale. As the size gets smaller, colors in the scene fade, until eventually it's nearly white.
I suspect this is because of the canvas compositing algorithm, by which if you draw a color at a width of 0.1 pixel, the color of the affected pixel is changed only slightly. This is fine, except for the problem of it fading at smaller scales.
Are there standard techniques to avoid this? Perhaps a different drawing mode? Or increasing the number of 'paints' executed?