111 Commits

Author SHA1 Message Date
ae1efc6009 Fix alignment of minus sign to numbers 2019-03-08 14:39:47 -06:00
741ed593b2 Fix height setting in Ellipse initialization 2019-03-07 10:44:43 -05:00
73a6c2400b Fixed CurvedArrow constructor by moving get_length() to base class.
I moved get_length() from the Line class to the shared base class,
TipableVMobject.

TESTED

python3 -m manim manim_tutorial_P37.py MoreShapes -pl
2019-03-03 07:53:15 -06:00
61dbad5edd Revert "Reverted Cleaned Up Arrow Implementation (commit d489b5df5c77...)"
Undoing my revert of another commit because I found a fix.

This reverts commit cd29ff6e0d8e46930da9074e0e2c62799349e16b.
2019-03-03 07:42:00 -06:00
cd29ff6e0d Reverted Cleaned Up Arrow Implementation (commit d489b5df5c77...) 2019-02-24 11:57:02 -06:00
7c76b7add8 Fixed SVG parsing error with consecutive C or M coordinates. 2019-02-19 21:33:03 -08:00
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
3b9c085cf1 Typo fix 2019-02-16 12:08:36 -08:00
829b3d9210 Merge branch 'master' of github.com:3b1b/manim into kill-continual-animations 2019-02-15 20:08:16 -08:00
89824e3d52 continual_update -> update_mobjects 2019-02-15 20:05:45 -08:00
c6bb29ce26 Added f_always 2019-02-15 15:16:11 -08:00
18de4c5404 Make it sound that Polygon.round_corners leaves it with evenly distributed anchors 2019-02-15 15:16:02 -08:00
6e99da9def Remove make_jagged 2019-02-15 15:15:32 -08:00
4fbe67f262 Added general get_arc_length to VMobject 2019-02-15 15:15:07 -08:00
c47329660f Refactored make_smooth and make_jagged 2019-02-15 14:22:01 -08:00
d943f10123 Fixed make_jagged 2019-02-15 11:51:18 -08:00
e0ef531f49 Remove make_jagged from Cube 2019-02-15 11:48:58 -08:00
9b5de02756 Fix logo 2019-02-15 11:48:37 -08:00
a6dd906983 Remove commented out Arrow tip_length default 2019-02-15 11:48:23 -08:00
4a00161bee Fixed NumberPlane 2019-02-14 11:34:55 -08:00
4aa63198d7 Fixed align_to 2019-02-14 11:34:06 -08:00
2375f3675b Import the function "rotate_vector" 2019-02-13 16:32:37 +08:00
ff53c57d9d Tiny line swap 2019-02-11 22:25:02 -08:00
312e9c460b Add an option to not display zero by default 2019-02-11 22:24:17 -08:00
b2608d7b93 Use null_point_align 2019-02-11 22:24:02 -08:00
1735f16d68 Fixed NumberLine bug 2019-02-11 22:14:00 -08:00
86d3ade0ef Change restore implementation using become 2019-02-11 21:18:08 -08:00
f429f46df8 Got rid of fade_no_recurse idea 2019-02-11 21:15:15 -08:00
b2625b0667 Whoops, left a print statement 2019-02-11 20:55:19 -08:00
9f76063271 Fix some bugs with VMobject.align_points 2019-02-11 20:52:54 -08:00
8877a256f2 Indexing of TexMobject should be no different from other Mobjects 2019-02-11 20:52:22 -08:00
da134f7c0b Changed how align_submojects works, partly to be simply, partly to shift to using null mobjects instead of ocpies 2019-02-11 20:51:57 -08:00
82f0afb4dd Got rid of ContinualUpdate 2019-02-11 15:48:44 -08:00
605ca08e6f Remove CycleAnimation ContinualAnimation, replace with cycle_animation which adds a mobject updater 2019-02-11 14:28:45 -08:00
6c03bb4f1e Get rid of NormalAnimationAsContinualAnimation 2019-02-11 14:08:48 -08:00
1eb8180d3d Get rid of ContinualMovement, replace with always_shift 2019-02-11 13:37:07 -08:00
a73cbb8014 Added always_shift and always_rotate 2019-02-11 13:17:23 -08:00
62c4967f21 Add always function, for mobject updating by a method 2019-02-11 13:04:52 -08:00
94d7a8a663 updating_mobject_from_func -> always_redraw 2019-02-11 12:58:52 -08:00
bac64eddb3 Rename updater.py to mobject_update_utils.py 2019-02-11 12:51:50 -08:00
94b943f544 Removed use of self.__dict__ in DecimalNumber 2019-02-10 10:56:24 -08:00
d742d48d13 Removed unnecessary import 2019-02-10 10:56:08 -08:00
306ee31d44 Fixed car problems. Regular mechanic over here 2019-02-10 10:26:08 -08:00
c1cc1a8b24 If about_edge is None, default to ORIGIN 2019-02-09 15:47:32 -08:00
72a8bd8cc1 Fixed bug with VMobject.align_points 2019-02-09 10:39:34 -08:00
88b35c45b8 Created fading.py and growing.py to help break up animation.creation.py 2019-02-09 09:08:57 -08:00
1c4ff6a556 update_mobject -> interpolate_mobject for Animation, but not for ContinualAnimation 2019-02-08 11:57:27 -08:00
84b07bc347 Fixed Polygon.round_corners bug 2019-02-07 22:25:09 -08:00
2449f3a284 Remove Grid 2019-02-07 21:59:32 -08:00
5b5415cc3e Added round_corners method to Polygon 2019-02-07 21:57:40 -08:00