Reference
Core¤
ComplexMap
¤
Construct and animate a complex mapping.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
f |
Square | Polygon | RegularPolygon | Triangle | Circle | Dot | Line
|
A geometry (or |
required |
transformation |
Callable[[float], float]
|
The complex transformation as a function reference. |
required |
Source code in riemapp/core.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
Animate
¤
Bases: Scene
A placeholder class for manim Scene.
This class is used to construct and generate manim animations programmatically.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
f |
Square | Polygon | RegularPolygon | Triangle | Circle | Dot | Line
|
A geometry (or |
required |
transformation |
Callable[[float], float]
|
The complex transformation as a function reference. |
required |
add_numberplane |
bool
|
Adds NumberPlane to the scene. |
False
|
run_time |
float
|
Run time for creating the provided geometry. |
1.0
|
Source code in riemapp/core.py
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | |
construct()
¤
The default manim constructor
Source code in riemapp/core.py
119 120 121 122 123 124 125 126 127 | |
generate_animation(*, add_numberplane=False, run_time=1.0)
¤
Generates a mathematical animation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
add_numberplane |
bool
|
Adds NumberPlane to the scene. |
False
|
run_time |
float
|
Run time for creating the provided geometry. |
1.0
|
Returns:
| Name | Type | Description |
|---|---|---|
animate |
Animate
|
A custom manim Scene object |
Source code in riemapp/core.py
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | |
render(preview=False)
¤
Renders the animation.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
preview |
bool
|
Automatically opens the generated animation. |
False
|
Source code in riemapp/core.py
69 70 71 72 73 74 75 76 77 78 79 80 | |
Geometries¤
ArbitraryCurve
¤
Constructs an arbitrary curve.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
curve |
A curve in the form of a Python function |
required | |
x_range |
The |
required | |
y_range |
The |
required |
Source code in riemapp/geometry.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | |
Circle
¤
Bases: Circle
Constructs a circular geometry with specified radius.
An alias class for manim.Circle.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
radius |
float
|
the radius of the circle |
required |
Source code in riemapp/geometry.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | |
Dot
¤
Bases: Dot
Constructs a circle with a very small radius.
An alias class for manim.Dot.
Source code in riemapp/geometry.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 | |
Line
¤
Bases: Line
Constructs a Line geometry with the specified staring and end points.
An alias class for manim.Line.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
start |
Sequence[float] | NDArray[float64]
|
Line's starting points |
required |
end |
Sequence[float] | NDArray[float64]
|
Line's end points |
required |
Source code in riemapp/geometry.py
170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
Polygon
¤
Bases: Polygon
Constructs a shape consisting of one close loop of vertices.
An alias class for manim.Polygon.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
*vertices |
Sequence[Sequence[float]]
|
Polygon's vertices points |
()
|
Source code in riemapp/geometry.py
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
RegularPolygon
¤
Bases: RegularPolygon
Constructs a n-sided regular Polygon.
An alias class for manim.RegularPolygon.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n |
int
|
number of sides of the RegularPolygon |
required |
Source code in riemapp/geometry.py
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | |
Square
¤
Bases: Square
Constructs a square geometry with the specified side length.
An alias class for manim.Square.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
side_length |
float
|
square's side length |
required |
Source code in riemapp/geometry.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |
Triangle
¤
Bases: Triangle
Constructs an equilateral Triangle geometry.
An alias class for manim.Triangle.
Source code in riemapp/geometry.py
114 115 116 117 118 119 120 121 122 123 124 125 126 | |