Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Updated documentation: parameters, return values

Philipp Imhof449d9034a127
diff --git a/manimlib/mobject/matrix.py b/manimlib/mobject/matrix.py
index f7625bf87..1ab7b6ba7 100644
--- a/manimlib/mobject/matrix.py
+++ b/manimlib/mobject/matrix.py
@@ -130,6 +130,8 @@ class Matrix(VMobject):
def get_rows(self):
"""
Return rows of the matrix as VGroups
+ parameters: none
+ return value: array of VGroups, each VGroup containing a row
"""
return VGroup(*[
VGroup(*self.mob_matrix[i, :])
@@ -139,6 +141,8 @@ class Matrix(VMobject):
def set_row_colors(self, *colors):
"""
Set individual colors for each row of the matrix
+ parameters: list of colors, one color per row
+ return value: matrix object itself
"""
rows = self.get_rows()
for color, row in zip(colors, rows):