Mouse down or touch and stroke on canvas to reveal the image underneath. Uses Retina image detection in CSS & JavaScript with image-set and window.devicePixelRatio, image removal with globalCompositeOperation. Full explanatory article on my blog next week. Photographs by KingsdudeDave and davebloggs007
A Pen by Dudley Storey on CodePen.
How to detect the % of scratched?