mini_arcade_core.spaces.geometry.shapes¶
Geometry shape definitions.
Attributes¶
Classes¶
Module Contents¶
- mini_arcade_core.spaces.geometry.shapes.ShapeKind¶
- class mini_arcade_core.spaces.geometry.shapes.Shape2D[source]¶
Simple shape entity.
- Variables:
kind – The kind of shape (rect, circle, triangle, line, poly).
- class mini_arcade_core.spaces.geometry.shapes.Rect[source]¶
Bases:
Shape2DRectangle shape entity.
- Variables:
kind – The kind of shape (rect).
corner_radius – The corner radius of the rectangle.
- kind: Literal['rect'] = 'rect'¶
- corner_radius: float = 0.0¶
- class mini_arcade_core.spaces.geometry.shapes.Circle[source]¶
Bases:
Shape2DCircle shape entity.
- Variables:
kind – The kind of shape (circle).
radius – The radius of the circle.
- kind: Literal['circle'] = 'circle'¶
- radius: float = 0.0¶
- class mini_arcade_core.spaces.geometry.shapes.Triangle[source]¶
Bases:
Shape2DTriangle shape entity.
- Variables:
kind – The kind of shape (triangle).
- kind: Literal['triangle'] = 'triangle'¶
- class mini_arcade_core.spaces.geometry.shapes.Line[source]¶
Bases:
Shape2DLine shape entity.
- Variables:
kind – The kind of shape (line).
a – The start point of the line (local-space).
b – The end point of the line (local-space).
dash_length – Optional dash length in pixels for dashed rendering.
dash_gap – Optional gap length in pixels for dashed rendering.
- kind: Literal['line'] = 'line'¶
- dash_length: float | None = None¶
- dash_gap: float | None = None¶