A 2010 demo exploring HTML5 Canvas's globalCompositeOperation property to build a scratch-off effect. Covers how different composite modes like 'source-over', 'source-atop', and 'source-out' affect how drawing operations interact with existing canvas content. Notes browser compatibility issues with 'source-out' in Firefox, and briefly mentions an alternative approach using clip() for masking.
Sort: