Skip to main content
Between the Margins
Posts
Tags
Back to strich.io
Posts
Tags
Back to strich.io
Back to all tags
canvas
Posts
Creating an Overlay with a Transparent Cutout
Dec 17, 2024
canvas
A short tutorial on how to create an overlay with a transparent rounded rectangle cutout using the 2D Canvas API, namely the fillRect(), clearRect() and clip() operations.