Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Made 0 a default value for DecimalNumber

Grant Sandersona72b769c0fec
diff --git a/manimlib/mobject/numbers.py b/manimlib/mobject/numbers.py
index 5f48ce2ed..8ec82d9e3 100644
--- a/manimlib/mobject/numbers.py
+++ b/manimlib/mobject/numbers.py
@@ -15,7 +15,7 @@ class DecimalNumber(VMobject):
"edge_to_fix": LEFT,
}
- def __init__(self, number, **kwargs):
+ def __init__(self, number=0, **kwargs):
VMobject.__init__(self, **kwargs)
self.number = number
self.initial_config = kwargs