RegularPolygon¶
Qualified name: algan.mobs.shapes\_2d.RegularPolygon
- class RegularPolygon(num_vertices, *args, **kwargs)[source]¶
Bases:
Polygon
A 2-D planar polygon with the given number of vertices spaced evenly around the unit circle.
- Parameters:
num_vertices (int) – The number of vertices of the polygon. Must be greater than or equal to 3.
*args – Passed to
BezierCircuitCubic
**kwargs – Passed to
BezierCircuitCubic
Methods
Attributes
animation_manager
basis
The flattened 3x3 matrix representing the Mob's orientation and scale.
color
glow
location
The 3-D location of the Mob in world space.
max_opacity
normalized_basis
The Mob's basis matrix with all its row vectors normalized to unit length.
opacity
scale_coefficient
The scaling factor of the Mob along its local axes, derived from the basis.