3b1b-manim/manimlib
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
..
animation OldLaggedStart -> LaggedStartMap 2019-02-14 12:06:21 -08:00
camera continual_update -> update_mobjects 2019-02-15 20:05:45 -08:00
container Remove comment about ContinualAnimation 2019-02-11 16:11:53 -08:00
files restore three_d_scene and svgs 2018-12-26 22:27:11 -08:00
for_3b1b_videos OldLaggedStart -> LaggedStartMap 2019-02-14 12:06:21 -08:00
mobject Fix Ellipse constructor: 'width' is not defined 2019-02-17 21:34:40 -06:00
once_useful_constructs Removed ContinualAnimation, reimplemented some of its occurances in the old_projects, added warnings for the rest 2019-02-16 12:46:54 -08:00
scene Removed ContinualAnimation, reimplemented some of its occurances in the old_projects, added warnings for the rest 2019-02-16 12:46:54 -08:00
utils Merge pull request #397 from fwcd/master 2019-02-12 09:40:20 -08:00
config.py Allow scene extraction from a special file which contains an ALL_SCENE_CLASSES list and an OUTPUT_DIRECTORY. This is part of a move to make the output file organization independent from the sourcecode organization 2019-01-25 11:03:14 -08:00
constants.py add option to specify files directory 2019-02-15 20:37:42 +00:00
ctex_template.tex move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00
extract_scene.py Allow scene extraction from a special file which contains an ALL_SCENE_CLASSES list and an OUTPUT_DIRECTORY. This is part of a move to make the output file organization independent from the sourcecode organization 2019-01-25 11:03:14 -08:00
media_dir.txt move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00
stream_starter.py Use frame_rate, instead of frame_duration, and make that part of the camera rather than the scene 2019-01-25 10:13:17 -08:00
tex_template.tex move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00