- class RegularPolygram(num_vertices, *, density=2, radius=1, start_angle=None, **kwargs)[source]#
Polygramwith regularly spaced vertices.
num_vertices (int) – The number of vertices.
density (int) –
The density of the
Can be thought of as how many vertices to hop to draw a line between them. Every
density-th vertex is connected.
radius (float) – The radius of the circle that the vertices are placed on.
start_angle (float | None) – The angle the vertices start at; the rotation of the
kwargs – Forwarded to the parent constructor.
Example: RegularPolygramExample ¶
from manim import * class RegularPolygramExample(Scene): def construct(self): pentagram = RegularPolygram(5, radius=2) self.add(pentagram)
Used to animate the application of any method of
The depth of the mobject.
If there are multiple colors (for gradient) this returns the first one
The height of the mobject.
The width of the mobject.