Programmatically generate SVG (vector) images, animations, and interactive Jupyter widgets

Add SVG Mask element

Changed files
+7
drawSvg
+7
drawSvg/defs.py
···
Has regular drawing elements as children. '''
TAG_NAME = 'clipPath'
class Filter(DrawingDef):
''' A filter to apply to geometry
···
Has regular drawing elements as children. '''
TAG_NAME = 'clipPath'
+
class Mask(DrawingDef):
+
''' A drawing where the gray value and transparency are used to control the
+
transparency of another shape.
+
+
Has regular drawing elements as children. '''
+
TAG_NAME = 'mask'
+
class Filter(DrawingDef):
''' A filter to apply to geometry