mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Add increment function to Integer
This commit is contained in:
parent
3649547862
commit
d222c8aa14
1 changed files with 3 additions and 0 deletions
|
@ -126,3 +126,6 @@ class Integer(DecimalNumber):
|
|||
CONFIG = {
|
||||
"num_decimal_places": 0,
|
||||
}
|
||||
|
||||
def increment_value(self):
|
||||
self.set_value(self.get_value() + 1)
|
||||
|
|
Loading…
Add table
Reference in a new issue