Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Add increment function to Integer

Grant Sandersond222c8aa1449
diff --git a/manimlib/mobject/numbers.py b/manimlib/mobject/numbers.py
index 89f7c3933..df6ad50c2 100644
--- a/manimlib/mobject/numbers.py
+++ b/manimlib/mobject/numbers.py
@@ -126,3 +126,6 @@ class Integer(DecimalNumber):
CONFIG = {
"num_decimal_places": 0,
}
+
+ def increment_value(self):
+ self.set_value(self.get_value() + 1)