Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Manim Community v0.20.1
Light Logo Dark Logo
Manim Community v0.20.1
  • Example Gallery
  • Installation
    • Installing Manim locally
    • Conda
    • Docker
    • Jupyter Notebooks
  • Tutorials & Guides
    • Tutorials
      • Quickstart
      • Manim’s Output Settings
      • Manim’s building blocks
    • Thematic Guides
      • Configuration
      • A deep dive into Manim’s internals
      • Rendering Text and Formulas
      • Adding Voiceovers to Videos
    • Frequently Asked Questions
      • FAQ: General Usage
      • FAQ: Getting Help
      • FAQ: Installation
      • Where can I learn more about Manim’s internal structure?
      • FAQ: OpenGL rendering
  • Reference Manual
    • Animations
      • animation
        • Add
        • Animation
        • Wait
      • changing
        • AnimatedBoundary
        • TracedPath
      • composition
        • AnimationGroup
        • LaggedStart
        • LaggedStartMap
        • Succession
      • creation
        • AddTextLetterByLetter
        • AddTextWordByWord
        • Create
        • DrawBorderThenFill
        • RemoveTextLetterByLetter
        • ShowIncreasingSubsets
        • ShowPartial
        • ShowSubmobjectsOneByOne
        • SpiralIn
        • TypeWithCursor
        • Uncreate
        • UntypeWithCursor
        • Unwrite
        • Write
      • fading
        • FadeIn
        • FadeOut
      • growing
        • GrowArrow
        • GrowFromCenter
        • GrowFromEdge
        • GrowFromPoint
        • SpinInFromNothing
      • indication
        • ApplyWave
        • Blink
        • Circumscribe
        • Flash
        • FocusOn
        • Indicate
        • ShowPassingFlash
        • ShowPassingFlashWithThinningStrokeWidth
        • Wiggle
      • movement
        • ComplexHomotopy
        • Homotopy
        • MoveAlongPath
        • PhaseFlow
        • SmoothedVectorizedHomotopy
      • numbers
        • ChangeDecimalToValue
        • ChangingDecimal
      • rotation
        • Rotate
        • Rotating
      • specialized
        • Broadcast
      • speedmodifier
        • ChangeSpeed
      • transform
        • ApplyComplexFunction
        • ApplyFunction
        • ApplyMatrix
        • ApplyMethod
        • ApplyPointwiseFunction
        • ApplyPointwiseFunctionToCenter
        • ClockwiseTransform
        • CounterclockwiseTransform
        • CyclicReplace
        • FadeToColor
        • FadeTransform
        • FadeTransformPieces
        • MoveToTarget
        • ReplacementTransform
        • Restore
        • ScaleInPlace
        • ShrinkToCenter
        • Swap
        • Transform
        • TransformAnimations
        • TransformFromCopy
      • transform_matching_parts
        • TransformMatchingAbstractBase
        • TransformMatchingShapes
        • TransformMatchingTex
      • updaters
        • mobject_update_utils
        • update
          • MaintainPositionRelativeTo
          • UpdateFromAlphaFunc
          • UpdateFromFunc
    • Cameras
      • camera
        • BackgroundColoredVMobjectDisplayer
        • Camera
      • mapping_camera
        • MappingCamera
        • OldMultiCamera
        • SplitScreenCamera
      • moving_camera
        • MovingCamera
      • multi_camera
        • MultiCamera
      • three_d_camera
        • ThreeDCamera
    • Configuration
      • _config
      • utils
        • ManimConfig
        • ManimFrame
      • logger_utils
        • JSONFormatter
    • Mobjects
      • frame
        • FullScreenRectangle
        • ScreenRectangle
      • geometry
        • arc
          • AnnotationDot
          • AnnularSector
          • Annulus
          • Arc
          • ArcBetweenPoints
          • ArcPolygon
          • ArcPolygonFromArcs
          • Circle
          • CubicBezier
          • CurvedArrow
          • CurvedDoubleArrow
          • Dot
          • Ellipse
          • LabeledDot
          • Sector
          • TangentialArc
          • TipableVMobject
        • boolean_ops
          • Difference
          • Exclusion
          • Intersection
          • Union
        • labeled
          • Label
          • LabeledArrow
          • LabeledLine
          • LabeledPolygram
        • line
          • Angle
          • Arrow
          • DashedLine
          • DoubleArrow
          • Elbow
          • Line
          • RightAngle
          • TangentLine
          • Vector
        • polygram
          • ConvexHull
          • Cutout
          • Polygon
          • Polygram
          • Rectangle
          • RegularPolygon
          • RegularPolygram
          • RoundedRectangle
          • Square
          • Star
          • Triangle
        • shape_matchers
          • BackgroundRectangle
          • Cross
          • SurroundingRectangle
          • Underline
        • tips
          • ArrowCircleFilledTip
          • ArrowCircleTip
          • ArrowSquareFilledTip
          • ArrowSquareTip
          • ArrowTip
          • ArrowTriangleFilledTip
          • ArrowTriangleTip
          • StealthTip
      • graph
        • DiGraph
        • GenericGraph
        • Graph
        • LayoutFunction
      • graphing
        • coordinate_systems
          • Axes
          • ComplexPlane
          • CoordinateSystem
          • NumberPlane
          • PolarPlane
          • ThreeDAxes
        • functions
          • FunctionGraph
          • ImplicitFunction
          • ParametricFunction
        • number_line
          • NumberLine
          • UnitInterval
        • probability
          • BarChart
          • SampleSpace
        • scale
          • LinearBase
          • LogBase
      • logo
        • ManimBanner
      • matrix
        • DecimalMatrix
        • IntegerMatrix
        • Matrix
        • MobjectMatrix
      • mobject
        • Group
        • Mobject
      • svg
        • brace
          • ArcBrace
          • Brace
          • BraceBetweenPoints
          • BraceLabel
          • BraceText
        • svg_mobject
          • SVGMobject
          • VMobjectFromSVGPath
      • table
        • DecimalTable
        • IntegerTable
        • MathTable
        • MobjectTable
        • Table
      • text
        • code_mobject
          • Code
        • numbers
          • DecimalNumber
          • Integer
          • Variable
        • tex_mobject
          • BulletedList
          • MathTex
          • MathTexPart
          • SingleStringMathTex
          • Tex
          • Title
        • text_mobject
          • MarkupText
          • Paragraph
          • Text
      • three_d
        • polyhedra
          • ConvexHull3D
          • Dodecahedron
          • Icosahedron
          • Octahedron
          • Polyhedron
          • Tetrahedron
        • three_d_utils
        • three_dimensions
          • Arrow3D
          • Cone
          • Cube
          • Cylinder
          • Dot3D
          • Line3D
          • Prism
          • Sphere
          • Surface
          • ThreeDVMobject
          • Torus
      • types
        • image_mobject
          • AbstractImageMobject
          • ImageMobject
          • ImageMobjectFromCamera
        • point_cloud_mobject
          • Mobject1D
          • Mobject2D
          • PGroup
          • PMobject
          • Point
          • PointCloudDot
        • vectorized_mobject
          • CurvesAsSubmobjects
          • DashedVMobject
          • VDict
          • VGroup
          • VMobject
          • VectorizedPoint
      • utils
      • value_tracker
        • ComplexValueTracker
        • ValueTracker
      • vector_field
        • ArrowVectorField
        • StreamLines
        • VectorField
    • Scenes
      • moving_camera_scene
        • MovingCameraScene
      • section
        • DefaultSectionType
        • Section
      • scene
        • RerunSceneHandler
        • Scene
        • SceneInteractContinue
        • SceneInteractRerun
      • scene_file_writer
        • SceneFileWriter
      • three_d_scene
        • SpecialThreeDScene
        • ThreeDScene
      • vector_space_scene
        • LinearTransformationScene
        • VectorScene
      • zoomed_scene
        • ZoomedScene
    • Utilities and other modules
      • bezier
      • cli
        • cfg
        • checkhealth
        • init
        • plugins
        • render
      • color
        • core
          • HSV
          • ManimColor
          • RGBA
          • RandomColorGenerator
        • manim_colors
        • AS2700
        • BS381
        • DVIPSNAMES
        • SVGNAMES
        • XKCD
        • X11
      • commands
        • VideoMetadata
      • config_ops
        • DictAsObject
      • constants
        • CapStyleType
        • LineJointType
        • QualityDict
        • RendererType
      • data_structures
        • MethodWithArgs
      • debug
      • deprecation
      • docbuild
        • autoaliasattr_directive
          • AliasAttrDocumenter
        • autocolor_directive
          • ManimColorModuleDocumenter
        • manim_directive
          • ManimDirective
          • SetupMetadata
          • SkipManimNode
        • module_parsing
      • hashing
      • images
      • ipython_magic
        • ManimMagic
      • iterables
      • paths
      • rate_functions
        • RateFunction
      • simple_functions
        • Comparable
      • sounds
      • space_ops
      • testing
        • _frames_testers
        • _show_diff
        • _test_class_makers
          • DummySceneFileWriter
      • tex
        • TexTemplate
      • tex_file_writing
      • tex_templates
        • TexFontTemplates
        • TexTemplateLibrary
      • typing
  • Plugins
  • Changelog
    • v0.20.1
    • v0.20.0
    • v0.19.2
    • v0.19.1
    • v0.19.0
    • v0.18.1
    • v0.18.0.post0
    • v0.18.0
    • v0.17.3
    • v0.17.2
    • v0.17.1
    • v0.17.0
    • v0.16.0
    • v0.15.2
    • v0.15.1
    • v0.15.0
    • v0.14.0
    • v0.13.1
    • v0.13.0
    • v0.12.0
    • v0.11.0
    • v0.10.0
    • v0.9.0
    • v0.8.0
    • v0.7.0
    • v0.6.0
    • v0.5.0
    • v0.4.0
    • v0.3.0
    • v0.2.0
    • v0.1.1
    • v0.1.0
  • Contributing
    • Manim Development Process
    • Adding Documentation
      • Adding Admonitions
      • Adding Docstrings
      • Adding Examples
      • Adding References
      • Typing Conventions
      • Choosing Type Hints
    • Adding Tests
    • Improving performance
    • Internationalization
  • Code of Conduct
Back to top
View this page
Edit this page

boolean_ops¶

Boolean operations for two-dimensional mobjects.

Classes

Difference

Subtracts one VMobject from another one.

Exclusion

Find the XOR between two VMobject.

Intersection

Find the intersection of two VMobject s.

Union

Union of two or more VMobject s.

Next
Difference
Previous
TipableVMobject
Copyright © 2020-2026, The Manim Community Dev Team
Made with Sphinx and @pradyunsg's Furo