The animation engine for agents: blazingly fast math and 3D videos with Manim's Python API, on a Rust GPU core.
Python
Add polygon and square shape cases
apoogdk5a2b437af7bb
diff --git a/tests/integration/cases/polygon_example/case.json b/tests/integration/cases/polygon_example/case.jsonnew file mode 100644index 00000000..e57e6d3e--- /dev/null+++ b/tests/integration/cases/polygon_example/case.json@@ -0,0 +1,42 @@+{+ "source": "sha256:a21e07a2b25ae57e53d36b7d5d4ffda51aeecb8b8e3c60c5f829adea902435f8",+ "size": [960, 540],+ "fps": 10,+ "manimgx": {+ "duration": 1.0,+ "frames": [+ ["47c4837928187da2", 11]+ ],+ "timeline": [+ [0.0, 11]+ ],+ "id": "sha256:f5c14b8576842ebf7b991a623539460bc4c1a5ed48c5d6943f5fdd3b9ece6bb3"+ },+ "ce": {+ "manim": "0.21.0",+ "duration": 1.0,+ "frames": [+ ["b31254fd090be491", 10]+ ],+ "timeline": [+ [0.0, 10]+ ],+ "id": "sha256:f5532bbf2e88c871e15e7647f7b0f2a4f552d7be478972d04addceffb97b9589"+ },+ "comparison": {+ "metrics": ["local_max", "mae", "rmse", "max"],+ "pairs": [+ [0, 0, 1.8, 0.01, 0.22, 41.0],+ [1, 1, 1.8, 0.01, 0.22, 41.0],+ [2, 2, 1.8, 0.01, 0.22, 41.0],+ [3, 3, 1.8, 0.01, 0.22, 41.0],+ [4, 4, 1.8, 0.01, 0.22, 41.0],+ [5, 5, 1.8, 0.01, 0.22, 41.0],+ [6, 6, 1.8, 0.01, 0.22, 41.0],+ [7, 7, 1.8, 0.01, 0.22, 41.0],+ [8, 8, 1.8, 0.01, 0.22, 41.0],+ [9, 9, 1.8, 0.01, 0.22, 41.0]+ ],+ "unpaired": []+ }+}diff --git a/tests/integration/cases/polygon_example/ce.mkv.sha256 b/tests/integration/cases/polygon_example/ce.mkv.sha256new file mode 100644index 00000000..6b02c879--- /dev/null+++ b/tests/integration/cases/polygon_example/ce.mkv.sha256@@ -0,0 +1 @@+ac29f0e590f04e49bf5f1ca5e1c335f26c2e6975c2e31e5f9bce4e59400a3fee ce.mkvdiff --git a/tests/integration/cases/polygon_example/manimgx.mkv.sha256 b/tests/integration/cases/polygon_example/manimgx.mkv.sha256new file mode 100644index 00000000..8b38bdb4--- /dev/null+++ b/tests/integration/cases/polygon_example/manimgx.mkv.sha256@@ -0,0 +1 @@+434ca509cf0e98018934922ff9da6ebe591d6ea13c6620593a60c0e3c1ddfe02 manimgx.mkvdiff --git a/tests/integration/cases/polygon_example/scene.py b/tests/integration/cases/polygon_example/scene.pynew file mode 100644index 00000000..de19baa4--- /dev/null+++ b/tests/integration/cases/polygon_example/scene.py@@ -0,0 +1,18 @@+# Source: manim/mobject/geometry/polygram.py+import manimgx as m+++class PolygonExample(m.Scene):+ def construct(self):+ isosceles = m.Polygon([-5, 1.5, 0], [-2, 1.5, 0], [-3.5, -2, 0])+ position_list = [+ [4, 1, 0], # middle right+ [4, -2.5, 0], # bottom right+ [0, -2.5, 0], # bottom left+ [0, 3, 0], # top left+ [2, 1, 0], # middle+ [4, 3, 0], # top right+ ]+ square_and_triangles = m.Polygon(*position_list, color=m.PURPLE_B)+ self.add(isosceles, square_and_triangles)+ self.wait()diff --git a/tests/integration/cases/regular_polygon_example/case.json b/tests/integration/cases/regular_polygon_example/case.jsonnew file mode 100644index 00000000..ad1e0d5f--- /dev/null+++ b/tests/integration/cases/regular_polygon_example/case.json@@ -0,0 +1,42 @@+{+ "source": "sha256:31dcfe44d86b29fdea291551f9b984803bf7002650d6927e170bd85229599821",+ "size": [960, 540],+ "fps": 10,+ "manimgx": {+ "duration": 1.0,+ "frames": [+ ["9bc195c967837ae3", 11]+ ],+ "timeline": [+ [0.0, 11]+ ],+ "id": "sha256:27ab4f758b3cdb3e1f3be26bdd124e2e1e8fb9b710ee2d4b76759c16afef23bc"+ },+ "ce": {+ "manim": "0.21.0",+ "duration": 1.0,+ "frames": [+ ["0e1a603e3e58793b", 10]+ ],+ "timeline": [+ [0.0, 10]+ ],+ "id": "sha256:72105918abf757f4df62c7f67d04e76c5a143f172139dc843c1bcf6ac42757b3"+ },+ "comparison": {+ "metrics": ["local_max", "mae", "rmse", "max"],+ "pairs": [+ [0, 0, 2.57, 0.01, 0.29, 72.0],+ [1, 1, 2.57, 0.01, 0.29, 72.0],+ [2, 2, 2.57, 0.01, 0.29, 72.0],+ [3, 3, 2.57, 0.01, 0.29, 72.0],+ [4, 4, 2.57, 0.01, 0.29, 72.0],+ [5, 5, 2.57, 0.01, 0.29, 72.0],+ [6, 6, 2.57, 0.01, 0.29, 72.0],+ [7, 7, 2.57, 0.01, 0.29, 72.0],+ [8, 8, 2.57, 0.01, 0.29, 72.0],+ [9, 9, 2.57, 0.01, 0.29, 72.0]+ ],+ "unpaired": []+ }+}diff --git a/tests/integration/cases/regular_polygon_example/ce.mkv.sha256 b/tests/integration/cases/regular_polygon_example/ce.mkv.sha256new file mode 100644index 00000000..5028d011--- /dev/null+++ b/tests/integration/cases/regular_polygon_example/ce.mkv.sha256@@ -0,0 +1 @@+25aec6d984f4027aa868a2c578a0f5f9046571e7030aa1462d336b8fc395619a ce.mkvdiff --git a/tests/integration/cases/regular_polygon_example/manimgx.mkv.sha256 b/tests/integration/cases/regular_polygon_example/manimgx.mkv.sha256new file mode 100644index 00000000..662a9b3b--- /dev/null+++ b/tests/integration/cases/regular_polygon_example/manimgx.mkv.sha256@@ -0,0 +1 @@+70f6233b6afb90fdcf8b1ab88c8063aaf652924b6e1c1c385cb3eaaf523099bb manimgx.mkvdiff --git a/tests/integration/cases/regular_polygon_example/scene.py b/tests/integration/cases/regular_polygon_example/scene.pynew file mode 100644index 00000000..0efe0b23--- /dev/null+++ b/tests/integration/cases/regular_polygon_example/scene.py@@ -0,0 +1,13 @@+# Source: manim/mobject/geometry/polygram.py+import manimgx as m+++class RegularPolygonExample(m.Scene):+ def construct(self):+ poly_1 = m.RegularPolygon(n=6)+ poly_2 = m.RegularPolygon(n=6, start_angle=30 * m.DEGREES, color=m.GREEN)+ poly_3 = m.RegularPolygon(n=10, color=m.RED)++ poly_group = m.Group(poly_1, poly_2, poly_3).scale(1.5).arrange(buff=1)+ self.add(poly_group)+ self.wait()diff --git a/tests/integration/cases/space_ops_polygon_construction_demo/case.json b/tests/integration/cases/space_ops_polygon_construction_demo/case.jsonnew file mode 100644index 00000000..aed22b12--- /dev/null+++ b/tests/integration/cases/space_ops_polygon_construction_demo/case.json@@ -0,0 +1,42 @@+{+ "source": "sha256:4f50b4eb6a294d8514344b6aef175fa176e3aa5224ca075c28a28eb6e68eee15",+ "size": [960, 540],+ "fps": 10,+ "manimgx": {+ "duration": 1.0,+ "frames": [+ ["7c063c1ff54d349d", 11]+ ],+ "timeline": [+ [0.0, 11]+ ],+ "id": "sha256:f9ed36bb48e2474612043ac887a819226e5503441811f22ee8aa1d59f69614e0"+ },+ "ce": {+ "manim": "0.21.0",+ "duration": 1.0,+ "frames": [+ ["97a41d74e3134483", 10]+ ],+ "timeline": [+ [0.0, 10]+ ],+ "id": "sha256:604642a66f908585a9bc382f9ee395f5176b9c33a9e534d488adafac54162416"+ },+ "comparison": {+ "metrics": ["local_max", "mae", "rmse", "max"],+ "pairs": [+ [0, 0, 3.73, 0.01, 0.28, 74.0],+ [1, 1, 3.73, 0.01, 0.28, 74.0],+ [2, 2, 3.73, 0.01, 0.28, 74.0],+ [3, 3, 3.73, 0.01, 0.28, 74.0],+ [4, 4, 3.73, 0.01, 0.28, 74.0],+ [5, 5, 3.73, 0.01, 0.28, 74.0],+ [6, 6, 3.73, 0.01, 0.28, 74.0],+ [7, 7, 3.73, 0.01, 0.28, 74.0],+ [8, 8, 3.73, 0.01, 0.28, 74.0],+ [9, 9, 3.73, 0.01, 0.28, 74.0]+ ],+ "unpaired": []+ }+}diff --git a/tests/integration/cases/space_ops_polygon_construction_demo/ce.mkv.sha256 b/tests/integration/cases/space_ops_polygon_construction_demo/ce.mkv.sha256new file mode 100644index 00000000..ae318850--- /dev/null+++ b/tests/integration/cases/space_ops_polygon_construction_demo/ce.mkv.sha256@@ -0,0 +1 @@+938e42626c43579fa87a68212197715e777cf977fbee8cb422a9324eab9e5ed8 ce.mkvdiff --git a/tests/integration/cases/space_ops_polygon_construction_demo/manimgx.mkv.sha256 b/tests/integration/cases/space_ops_polygon_construction_demo/manimgx.mkv.sha256new file mode 100644index 00000000..e47b10ab--- /dev/null+++ b/tests/integration/cases/space_ops_polygon_construction_demo/manimgx.mkv.sha256@@ -0,0 +1 @@+7e3339ef90370ce08fc4a39b6ef99ddd9849f80b15510f41e521f8aaf936b025 manimgx.mkvdiff --git a/tests/integration/cases/space_ops_polygon_construction_demo/scene.py b/tests/integration/cases/space_ops_polygon_construction_demo/scene.pynew file mode 100644index 00000000..c7be45aa--- /dev/null+++ b/tests/integration/cases/space_ops_polygon_construction_demo/scene.py@@ -0,0 +1,61 @@+# Source: manim/utils/space_ops.py+import numpy as np++import manimgx as m+++class SpaceOpsPolygonConstructionDemo(m.Scene):+ def construct(self):+ # compass_directions: build a 6-directional starburst centered left.+ dirs = m.compass_directions(6)+ start = np.array([-4.5, 1.5, 0.0])+ beam_group = m.VGroup()+ for d in dirs:+ beam_group.add(m.Line(start, start + 0.8 * d, color=m.BLUE, stroke_width=4))++ # regular_vertices (odd n): pentagonal polygon centered upper-mid.+ pent_verts, _ = m.regular_vertices(5, radius=0.9)+ pent_pts = np.asarray(pent_verts) + np.array([-1.5, 1.5, 0.0])+ pentagon = m.Polygon(*pent_pts, color=m.GREEN)++ # regular_vertices (even n): hexagon, custom start angle.+ hex_verts, _ = m.regular_vertices(6, radius=0.9, start_angle=np.pi / 12)+ hex_pts = np.asarray(hex_verts) + np.array([1.5, 1.5, 0.0])+ hexagon = m.Polygon(*hex_pts, color=m.ORANGE)++ # center_of_mass: compute the centroid of a polygon and place a dot.+ cluster_pts = np.array(+ [+ [4.0, 2.2, 0.0],+ [5.0, 2.2, 0.0],+ [5.0, 1.0, 0.0],+ [4.0, 1.0, 0.0],+ [4.5, 0.4, 0.0],+ ]+ )+ cluster_poly = m.Polygon(*cluster_pts, color=m.PURPLE)+ centroid = m.center_of_mass(cluster_pts)+ centroid_dot = m.Dot(np.asarray(centroid), color=m.RED, radius=0.1)++ # compass_directions with a non-default start vector.+ dirs2 = m.compass_directions(8, start_vect=np.array([0.6, 0.6, 0.0]))+ start2 = np.array([-3.0, -2.0, 0.0])+ beam_group2 = m.VGroup()+ for d in dirs2:+ beam_group2.add(m.Line(start2, start2 + d, color=m.PINK, stroke_width=3))++ # regular_vertices small radius polygon.+ tri_verts, _ = m.regular_vertices(3, radius=0.6)+ tri_pts = np.asarray(tri_verts) + np.array([3.0, -2.0, 0.0])+ triangle = m.Polygon(*tri_pts, color=m.YELLOW)++ self.add(+ beam_group,+ pentagon,+ hexagon,+ cluster_poly,+ centroid_dot,+ beam_group2,+ triangle,+ )+ self.wait()diff --git a/tests/integration/cases/space_ops_polygon_metric_demo/case.json b/tests/integration/cases/space_ops_polygon_metric_demo/case.jsonnew file mode 100644index 00000000..4d05a6b5--- /dev/null+++ b/tests/integration/cases/space_ops_polygon_metric_demo/case.json@@ -0,0 +1,42 @@+{+ "source": "sha256:b3676ebf99c92d157138d3f89be2431a2378ee7b28ef28330409eac9e0fcdbc9",+ "size": [960, 540],+ "fps": 10,+ "manimgx": {+ "duration": 1.0,+ "frames": [+ ["f55e30517ae7c9a0", 11]+ ],+ "timeline": [+ [0.0, 11]+ ],+ "id": "sha256:e31bbe04125772ed0ee9ced98600e7a3596d432d22f2e95a90af2fb92e70aab2"+ },+ "ce": {+ "manim": "0.21.0",+ "duration": 1.0,+ "frames": [+ ["d383428961cd3f13", 10]+ ],+ "timeline": [+ [0.0, 10]+ ],+ "id": "sha256:ceeb863be991f13fca61b17ffbcde7be7954c4dc9293f48d83f10b0b31a28d6c"+ },+ "comparison": {+ "metrics": ["local_max", "mae", "rmse", "max"],+ "pairs": [+ [0, 0, 149.0, 0.5, 6.36, 249.0],+ [1, 1, 149.0, 0.5, 6.36, 249.0],+ [2, 2, 149.0, 0.5, 6.36, 249.0],+ [3, 3, 149.0, 0.5, 6.36, 249.0],+ [4, 4, 149.0, 0.5, 6.36, 249.0],+ [5, 5, 149.0, 0.5, 6.36, 249.0],+ [6, 6, 149.0, 0.5, 6.36, 249.0],+ [7, 7, 149.0, 0.5, 6.36, 249.0],+ [8, 8, 149.0, 0.5, 6.36, 249.0],+ [9, 9, 149.0, 0.5, 6.36, 249.0]+ ],+ "unpaired": []+ }+}diff --git a/tests/integration/cases/space_ops_polygon_metric_demo/ce.mkv.sha256 b/tests/integration/cases/space_ops_polygon_metric_demo/ce.mkv.sha256new file mode 100644index 00000000..3cdc1775--- /dev/null+++ b/tests/integration/cases/space_ops_polygon_metric_demo/ce.mkv.sha256@@ -0,0 +1 @@+45bd1dc144226c7d4ac226ba034e8664335fd01d4ec5928ff1b03efe027324c9 ce.mkvdiff --git a/tests/integration/cases/space_ops_polygon_metric_demo/manimgx.mkv.sha256 b/tests/integration/cases/space_ops_polygon_metric_demo/manimgx.mkv.sha256new file mode 100644index 00000000..90f194c2--- /dev/null+++ b/tests/integration/cases/space_ops_polygon_metric_demo/manimgx.mkv.sha256@@ -0,0 +1 @@+0e0b3a482ef893d1a0cd58517bb6e60563a02e17153b123eee2d6a2e8e13efc5 manimgx.mkvdiff --git a/tests/integration/cases/space_ops_polygon_metric_demo/review.json b/tests/integration/cases/space_ops_polygon_metric_demo/review.jsonnew file mode 100644index 00000000..dbec9862--- /dev/null+++ b/tests/integration/cases/space_ops_polygon_metric_demo/review.json@@ -0,0 +1,8 @@+{+ "verdict": "working",+ "note": "",+ "source": "sha256:b3676ebf99c92d157138d3f89be2431a2378ee7b28ef28330409eac9e0fcdbc9",+ "manimgx": "sha256:e31bbe04125772ed0ee9ced98600e7a3596d432d22f2e95a90af2fb92e70aab2",+ "ce": "sha256:ceeb863be991f13fca61b17ffbcde7be7954c4dc9293f48d83f10b0b31a28d6c",+ "at": "2026-10-04"+}diff --git a/tests/integration/cases/space_ops_polygon_metric_demo/scene.py b/tests/integration/cases/space_ops_polygon_metric_demo/scene.pynew file mode 100644index 00000000..15b89f9f--- /dev/null+++ b/tests/integration/cases/space_ops_polygon_metric_demo/scene.py@@ -0,0 +1,89 @@+# Source: manim/utils/space_ops.py+import numpy as np++import manimgx as m+++class SpaceOpsPolygonMetricDemo(m.Scene):+ def construct(self):+ # shoelace: signed area of a CCW square sets the side length of a+ # demonstration square.+ ccw_verts = np.array([[0.0, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 1.0]])+ ccw_area = m.shoelace(ccw_verts)+ ccw_disp_color = m.GREEN if abs(ccw_area) > 0.5 else m.RED+ ccw_square = m.Square(+ side_length=abs(ccw_area) * 0.9, color=ccw_disp_color+ ).shift(np.array([-4.5, 2.0, 0.0]))++ # shoelace_direction: build a CW polygon and a CCW one, color the+ # demonstration squares accordingly.+ cw_verts = np.array([[0.0, 0.0], [0.0, 1.0], [1.0, 1.0], [1.0, 0.0]])+ cw_dir = m.shoelace_direction(cw_verts)+ ccw_dir = m.shoelace_direction(ccw_verts)+ cw_color = m.RED if cw_dir == "CW" else m.BLUE+ ccw_color = m.GREEN if ccw_dir == "CCW" else m.YELLOW+ cw_sq = m.Square(side_length=0.6, color=cw_color, fill_opacity=1).shift(+ np.array([-2.5, 2.0, 0.0])+ )+ ccw_sq = m.Square(side_length=0.6, color=ccw_color, fill_opacity=1).shift(+ np.array([-1.5, 2.0, 0.0])+ )++ # get_winding_number: square around origin has winding 1, square+ # offset away from origin has winding 0.+ winding_origin = [+ np.array([1.0, 1.0, 0.0]),+ np.array([-1.0, 1.0, 0.0]),+ np.array([-1.0, -1.0, 0.0]),+ np.array([1.0, -1.0, 0.0]),+ ]+ winding_offset = [+ np.array([3.0, 3.0, 0.0]),+ np.array([2.0, 3.0, 0.0]),+ np.array([2.0, 2.0, 0.0]),+ np.array([3.0, 2.0, 0.0]),+ ]+ w1 = m.get_winding_number(winding_origin)+ w2 = m.get_winding_number(winding_offset)+ bar1 = m.Line(+ np.array([0.5, 1.0, 0.0]),+ np.array([0.5 + float(w1), 1.0, 0.0]),+ color=m.BLUE,+ stroke_width=10,+ )+ bar2 = m.Line(+ np.array([0.5, 0.4, 0.0]),+ np.array([0.5 + float(w2) + 0.1, 0.4, 0.0]),+ color=m.PURPLE,+ stroke_width=10,+ )++ # earclip_triangulation: triangulate a concave pentagon and draw+ # the resulting triangles.+ verts2d = np.array(+ [+ [-0.5, -1.5, 0.0],+ [0.5, -1.5, 0.0],+ [0.7, -0.5, 0.0],+ [0.0, 0.0, 0.0],+ [-0.7, -0.5, 0.0],+ ]+ )+ tri_indices = m.earclip_triangulation(verts2d, [5])+ tri_group = m.VGroup()+ colors = [m.BLUE, m.GREEN, m.RED, m.ORANGE, m.PURPLE]+ offset = np.array([3.0, -1.5, 0.0])+ for k in range(0, len(tri_indices), 3):+ i0, i1, i2 = tri_indices[k], tri_indices[k + 1], tri_indices[k + 2]+ color = colors[(k // 3) % len(colors)]+ tri = m.Polygon(+ verts2d[i0] + offset,+ verts2d[i1] + offset,+ verts2d[i2] + offset,+ color=color,+ fill_opacity=0.6,+ )+ tri_group.add(tri)++ self.add(ccw_square, cw_sq, ccw_sq, bar1, bar2, tri_group)+ self.wait()diff --git a/tests/integration/cases/square_and_circle2/case.json b/tests/integration/cases/square_and_circle2/case.jsonnew file mode 100644index 00000000..a4edd3e4--- /dev/null+++ b/tests/integration/cases/square_and_circle2/case.json@@ -0,0 +1,61 @@+{+ "source": "sha256:ec4c9134db1015c91b5ae1959b4e3e68fcb3e7b5c586335de277a6c20e005c7d",+ "size": [960, 540],+ "fps": 10,+ "manimgx": {+ "duration": 1.0,+ "frames": [+ ["2e842802bccef91c", 1],+ ["ae6a40b6d0d9ae60", 1],+ ["f764766afee7a33f", 1],+ ["61932003181c35d0", 1],+ ["c8084181af432a37", 1],+ ["3267b5b305cc783a", 1],+ ["c769b0073961442e", 1],+ ["0886755085172290", 1],+ ["4a19affb2f7a097e", 1],+ ["b52b1a349822c94f", 1],+ ["c800d867a22fab61", 1]+ ],+ "timeline": [+ [0.0, 11]+ ],+ "id": "sha256:5532e85b1eb5c06519289ae5d06c50c3fc00437ac92609b2398b9457bf0bcf5f"+ },+ "ce": {+ "manim": "0.21.0",+ "duration": 1.0,+ "frames": [+ ["2e842802bccef91c", 1],+ ["37324a9f6caef9b8", 1],+ ["ffa8c8d36b24ca43", 1],+ ["032b96efebce4711", 1],+ ["d36ac2492bd9a87f", 1],+ ["17f1bef3c25fb705", 1],+ ["1c3725a2905e4bad", 1],+ ["9901866a95f5d5c4", 1],+ ["e472a3f65bd4c968", 1],+ ["01c5e2bdebeff38b", 1]+ ],+ "timeline": [+ [0.0, 10]+ ],+ "id": "sha256:e3e5d9bc7bccfc609d65e61edc6298e3a546777602e14ae7c5c01462f544de1c"+ },+ "comparison": {+ "metrics": ["local_max", "mae", "rmse", "max"],+ "pairs": [+ [0, 0, 0.0, 0.0, 0.0, 0.0],+ [1, 1, 1.24, 0.0, 0.03, 12.0],+ [2, 2, 1.71, 0.0, 0.05, 14.0],+ [3, 3, 2.98, 0.0, 0.1, 28.0],+ [4, 4, 2.45, 0.01, 0.13, 19.0],+ [5, 5, 1.8, 0.02, 0.17, 17.0],+ [6, 6, 2.67, 0.04, 0.24, 19.0],+ [7, 7, 1.98, 0.04, 0.24, 17.0],+ [8, 8, 1.98, 0.04, 0.24, 17.0],+ [9, 9, 2.45, 0.04, 0.25, 19.0]+ ],+ "unpaired": []+ }+}diff --git a/tests/integration/cases/square_and_circle2/ce.mkv.sha256 b/tests/integration/cases/square_and_circle2/ce.mkv.sha256new file mode 100644index 00000000..75f2581d--- /dev/null+++ b/tests/integration/cases/square_and_circle2/ce.mkv.sha256@@ -0,0 +1 @@+1be3edb21f6346f1704634d311d479902345690277e3c657535a80b26fe45699 ce.mkvdiff --git a/tests/integration/cases/square_and_circle2/manimgx.mkv.sha256 b/tests/integration/cases/square_and_circle2/manimgx.mkv.sha256new file mode 100644index 00000000..f0732b3a--- /dev/null+++ b/tests/integration/cases/square_and_circle2/manimgx.mkv.sha256@@ -0,0 +1 @@+6699d666e2148c71235a83591193931b7126fe2e92db8f9d355ec16efb937ef8 manimgx.mkvdiff --git a/tests/integration/cases/square_and_circle2/scene.py b/tests/integration/cases/square_and_circle2/scene.pynew file mode 100644index 00000000..70465713--- /dev/null+++ b/tests/integration/cases/square_and_circle2/scene.py@@ -0,0 +1,14 @@+# Source: docs/source/tutorials/quickstart.rst+import manimgx as m+++class SquareAndCircle2(m.Scene):+ def construct(self):+ circle = m.Circle() # create a circle+ circle.set_fill(m.PINK, opacity=0.5) # set the color and transparency++ square = m.Square() # create a square+ square.set_fill(m.BLUE, opacity=0.5) # set the color and transparency++ square.next_to(circle, m.RIGHT, buff=0.5) # set the position+ self.play(m.Create(circle), m.Create(square)) # show the shapes on screendiff --git a/tests/integration/cases/square_example/case.json b/tests/integration/cases/square_example/case.jsonnew file mode 100644index 00000000..f3ad6350--- /dev/null+++ b/tests/integration/cases/square_example/case.json@@ -0,0 +1,42 @@+{+ "source": "sha256:cf0ee8fbcabce6873a17f940b4f7f852bcadb7d0806a9e564c943fa5d5559c0d",+ "size": [960, 540],+ "fps": 10,+ "manimgx": {+ "duration": 1.0,+ "frames": [+ ["5bd910e4278d6631", 11]+ ],+ "timeline": [+ [0.0, 11]+ ],+ "id": "sha256:f7524ab8155f3e17c953b74c29d48f2a816819a4ad683179d998df3e0f147126"+ },+ "ce": {+ "manim": "0.21.0",+ "duration": 1.0,+ "frames": [+ ["d14dde6cba55e856", 10]+ ],+ "timeline": [+ [0.0, 10]+ ],+ "id": "sha256:02c45b982319fb7a4ad4ff9849f55f75a26da5b66f77029fbda159f1da95bfd2"+ },+ "comparison": {+ "metrics": ["local_max", "mae", "rmse", "max"],+ "pairs": [+ [0, 0, 2.31, 0.01, 0.25, 53.0],+ [1, 1, 2.31, 0.01, 0.25, 53.0],+ [2, 2, 2.31, 0.01, 0.25, 53.0],+ [3, 3, 2.31, 0.01, 0.25, 53.0],+ [4, 4, 2.31, 0.01, 0.25, 53.0],+ [5, 5, 2.31, 0.01, 0.25, 53.0],+ [6, 6, 2.31, 0.01, 0.25, 53.0],+ [7, 7, 2.31, 0.01, 0.25, 53.0],+ [8, 8, 2.31, 0.01, 0.25, 53.0],+ [9, 9, 2.31, 0.01, 0.25, 53.0]+ ],+ "unpaired": []+ }+}diff --git a/tests/integration/cases/square_example/ce.mkv.sha256 b/tests/integration/cases/square_example/ce.mkv.sha256new file mode 100644index 00000000..b1eaef72--- /dev/null+++ b/tests/integration/cases/square_example/ce.mkv.sha256@@ -0,0 +1 @@+6d779a2dc437f20491df9bfb5786a62685254e63bf8cb0d9c606ed31bf707fa1 ce.mkvdiff --git a/tests/integration/cases/square_example/manimgx.mkv.sha256 b/tests/integration/cases/square_example/manimgx.mkv.sha256new file mode 100644index 00000000..d77cc334--- /dev/null+++ b/tests/integration/cases/square_example/manimgx.mkv.sha256@@ -0,0 +1 @@+1675b2af443c4a8b6c7d11b2e4e86d7876b3e6d882069926e3dc59db849bf982 manimgx.mkvdiff --git a/tests/integration/cases/square_example/scene.py b/tests/integration/cases/square_example/scene.pynew file mode 100644index 00000000..cb2a4be7--- /dev/null+++ b/tests/integration/cases/square_example/scene.py@@ -0,0 +1,11 @@+# Source: manim/mobject/geometry/polygram.py+import manimgx as m+++class SquareExample(m.Scene):+ def construct(self):+ square_1 = m.Square(side_length=2.0).shift(m.DOWN)+ square_2 = m.Square(side_length=1.0).next_to(square_1, direction=m.UP)+ square_3 = m.Square(side_length=0.5).next_to(square_2, direction=m.UP)+ self.add(square_1, square_2, square_3)+ self.wait()