Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix formatting building blocks (#3515)

Tristan Schulz18a729416415
diff --git a/docs/html b/docs/html
new file mode 100644
index 000000000..e69de29bb
diff --git a/docs/skip-manim b/docs/skip-manim
new file mode 100644
index 000000000..e69de29bb
diff --git a/docs/source/tutorials/building_blocks.rst b/docs/source/tutorials/building_blocks.rst
index 3f76588b1..a01874535 100644
--- a/docs/source/tutorials/building_blocks.rst
+++ b/docs/source/tutorials/building_blocks.rst
@@ -376,13 +376,13 @@ and :meth:`~.Mobject.get_start`. Here is an example of some important coordinate
class MobjectExample(Scene):
def construct(self):
- p1= [-1,-1,0]
- p2= [1,-1,0]
- p3= [1,1,0]
- p4= [-1,1,0]
- a = Line(p1,p2).append_points(Line(p2,p3).points).append_points(Line(p3,p4).points)
- point_start= a.get_start()
- point_end = a.get_end()
+ p1 = [-1,-1, 0]
+ p2 = [ 1,-1, 0]
+ p3 = [ 1, 1, 0]
+ p4 = [-1, 1, 0]
+ a = Line(p1,p2).append_points(Line(p2,p3).points).append_points(Line(p3,p4).points)
+ point_start = a.get_start()
+ point_end = a.get_end()
point_center = a.get_center()
self.add(Text(f"a.get_start() = {np.round(point_start,2).tolist()}", font_size=24).to_edge(UR).set_color(YELLOW))
self.add(Text(f"a.get_end() = {np.round(point_end,2).tolist()}", font_size=24).next_to(self.mobjects[-1],DOWN).set_color(RED))
@@ -425,8 +425,8 @@ function of numpy:
self.camera.background_color = WHITE
m1a = Square().set_color(RED).shift(LEFT)
m1b = Circle().set_color(RED).shift(LEFT)
- m2a= Square().set_color(BLUE).shift(RIGHT)
- m2b= Circle().set_color(BLUE).shift(RIGHT)
+ m2a = Square().set_color(BLUE).shift(RIGHT)
+ m2b = Circle().set_color(BLUE).shift(RIGHT)
points = m2a.points
points = np.roll(points, int(len(points)/4), axis=0)