shape_matchers

class janim.items.shape_matchers.SurroundingRect(*args, **kwargs)

Bases: Rect

Surrounding rectangle

class janim.items.shape_matchers.FrameRect(*args, **kwargs)

Bases: Rect

Rectangle covering the entire frame

  • Can pass camera to specify using its frame area

  • If not passed, creates a rectangle with default width and height frame_width and frame_height

class janim.items.shape_matchers.HighlightRect(item: ~janim.items.points.Points, camera: ~janim.camera.camera.Camera | None = None, *, buff: ~janim.utils.data.Margins | float | tuple[float] = 0.1, width: float | None = None, height: float | None = None, align: ~janim.utils.data.Align = <Align.Center: 0>, **kwargs)

Bases: Difference

Highlighted area, i.e., FrameRect minus SurroundingRect

difference_config_d = {'color': '#000000', 'fill_alpha': 0.5, 'stroke_alpha': 0}
class janim.items.shape_matchers.Underline(*args, **kwargs)

Bases: Line