Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
SVG Masking
<!DOCTYPE html>
<svg version="1.1" viewBox="0 0 100 100">
<mask id="mask" x="0" y="0" width="100" height="100"
<circle cx="50" cy="50" r="50" fill="white" />
<circle cx="50" cy="50" r="25" fill="black" />
<circle cx="50" cy="50" r="50" fill="blue" mask="url(#mask)" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment