shape_matchers¶
- class janim.items.shape_matchers.SurroundingRect(*args, **kwargs)¶
Bases:
RectSurrounding rectangle
- class janim.items.shape_matchers.FrameRect(*args, **kwargs)¶
Bases:
RectRectangle covering the entire frame
Can pass
camerato specify using its frame areaIf not passed, creates a rectangle with default width and height
frame_widthandframe_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:
DifferenceHighlighted area, i.e.,
FrameRectminusSurroundingRect- difference_config_d = {'color': '#000000', 'fill_alpha': 0.5, 'stroke_alpha': 0}¶