Пример #1
0
 def __init__(self, subject: VMobject, clip: VMobject, **kwargs):
     super().__init__(**kwargs)
     outpen = pathops.Path()
     pathops.difference(
         [_convert_vmobject_to_skia_path(subject)],
         [_convert_vmobject_to_skia_path(clip)],
         outpen.getPen(),
     )
     _convert_skia_path_to_vmobject(outpen, self)
Пример #2
0
 def __init__(self, subject, clip, **kwargs) -> None:
     super().__init__(**kwargs)
     outpen = SkiaPath()
     difference(
         [self._convert_vmobject_to_skia_path(subject)],
         [self._convert_vmobject_to_skia_path(clip)],
         outpen.getPen(),
     )
     self._convert_skia_path_to_vmobject(outpen)