boolean_ops¶
- class janim.items.boolean_ops.Union(*vitems: VItem, **kwargs)¶
Bases:
VItemUnion
In common cases, pass two or more
VItem, returns the outer contour of the union of their regionsAdditionally, if only a single item is passed, the original path is copied
This method only involves the root item in calculation. If you need to consider the union of all child items, e.g., the union of all descendant items of
Text, refer tofrom_group()
- class janim.items.boolean_ops.Difference(subitem: VItem, clip: VItem, **kwargs)¶
Bases:
VItemDifference
Pass
subitemandclip, returns the contour ofsubitemminus theclipregion
- class janim.items.boolean_ops.Intersection(*vitems: VItem, **kwargs)¶
Bases:
VItemIntersection
In common cases, pass two or more
VItem, returns the outer contour of the intersection of their regionsAdditionally, if only a single item is passed, the original path is copied
This method only involves the root item in calculation. If you need to consider the intersection of all descendant items, refer to
from_group()
- class janim.items.boolean_ops.Exclusion(*vitems: VItem, **kwargs)¶
Bases:
VItemSymmetric difference
Pass two or more
VItem, returns the outer contour of their regions after XOR operationAdditionally, if only a single item is passed, the original path is copied
This method only involves the root item in calculation. If you need to consider the symmetric difference of all descendant items, refer to
Exclusion.from_group()