Skip to content

Instantly share code, notes, and snippets.

View vmario89's full-sized avatar
🤓
dafuq

Mario Voigt vmario89

🤓
dafuq
View GitHub Profile
@vmario89
vmario89 / determine-if-svg-path-is-contained-in-other-path-example.py
Created April 15, 2021 09:00 — forked from mathandy/determine-if-svg-path-is-contained-in-other-path-example.py
An example of how to determine if an SVG Path is contained in another SVG Path in Python.
"""
An example of how to determine if an svg path is contained in another
svg path in Python.
Note: for discontinuous paths you can use the svgpathtools
Path.continuous_subpaths() method to split a paths into a list of its
continuous subpaths.
"""
from svgpathtools import *