3b1b-manim/manimlib/mobject
jeanimal 2d552e0aa4
Fix Ellipse constructor: 'width' is not defined
Constructing an ellipse before gave the error "name 'width' is not defined"

I got this error when running the tutorial at https://github.com/zimmermant/manim_tutorial/blob/master/manim_tutorial_P37.py.

python3 -m manim manim_tutorial_P37.py MoreShapes -pl

Traceback (most recent call last):
  File "/Users/jeanwhitmore/Code/python3/manim/manimlib/extract_scene.py", line 153, in main
    scene = SceneClass(**scene_kwargs)
  File "/Users/jeanwhitmore/Code/python3/manim/manimlib/scene/scene.py", line 52, in __init__
    self.construct()
  File "manim_tutorial_P37.py", line 33, in construct
    ellipse=Ellipse(width=3, height=1, color=RED)
  File "/Users/jeanwhitmore/Code/python3/manim/manimlib/mobject/geometry.py", line 319, in __init__
    self.set_width(width, stretch=True)
NameError: name 'width' is not defined

After this fix, the Ellipse can be constructed and the animation is generated.

(Another shape is still broken, and I will try to fix that, too.)
2019-02-17 21:34:40 -06:00
..
svg Fix logo 2019-02-15 11:48:37 -08:00
types Added general get_arc_length to VMobject 2019-02-15 15:15:07 -08:00
coordinate_systems.py Fixed NumberPlane 2019-02-14 11:34:55 -08:00
frame.py Small changes to frames.py 2019-02-06 22:43:45 -08:00
functions.py Get rid of propagate_style_to_family, since it is basically always true 2019-02-06 16:25:03 -08:00
geometry.py Fix Ellipse constructor: 'width' is not defined 2019-02-17 21:34:40 -06:00
matrix.py move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00
mobject.py Typo fix 2019-02-16 12:08:36 -08:00
mobject_update_utils.py Added f_always 2019-02-15 15:16:11 -08:00
number_line.py Add an option to not display zero by default 2019-02-11 22:24:17 -08:00
numbers.py Whoops, left a print statement 2019-02-11 20:55:19 -08:00
probability.py move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00
shape_matchers.py move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00
three_d_shading_utils.py move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00
three_d_utils.py move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00
three_dimensions.py Remove make_jagged 2019-02-15 15:15:32 -08:00
value_tracker.py Removed unnecessary import 2019-02-10 10:56:08 -08:00