Commit graph

37 commits

Author SHA1 Message Date
Grant Sanderson
6f470679f7 Kill Animation CONFIG 2022-12-13 15:45:57 -08:00
Grant Sanderson
4e7f06dea8 Change rate_func to be used in submobject update
This allows for rate functions like overshoot and running start who have outputs outside of [0, 1] to still be used effectively.
2022-11-18 09:07:18 -08:00
Grant Sanderson
a6fcfa3b40 Add time_span option to Animation 2022-05-02 11:40:42 -07:00
Grant Sanderson
d24b8ff48f
Merge branch 'master' into master 2022-04-20 22:40:11 -07:00
Grant Sanderson
50565fcd7a Change the way changing-vs-static mobjects are tracked
Previously, Camera would keep track of which mobjects are supposed to be "static", so that it could generated their render groups once and not repeat unnecessarily. This had an awkward dependence where Scene would then need to keep track of which mobjects should and should not be considered static.

This update pushes that logic to the Mobject level, where it keeps track internally of whether it's being animated, has an updater, or can be moved around by the mouse.
2022-04-14 16:27:58 -07:00
YishiMichael
9ef9961d0e
Sort imports 2022-04-12 19:19:59 +08:00
TonyCrane
4fbe948b63
style: insert an empty line after import 2022-02-16 21:08:25 +08:00
TonyCrane
41c4023986
chore: add type hints to manimlib.animation 2022-02-15 18:39:45 +08:00
Grant Sanderson
5ff8e28ba5 Change suspend_mobject_updating default 2021-06-16 10:33:06 -07:00
Grant Sanderson
e1e7b1e6c1 Changes to make reduce the time of from manimlib import * 2021-02-11 12:22:37 -08:00
Grant Sanderson
d7f3f5ad24 Buf fixes for #1378 2021-02-10 16:45:23 -08:00
friedkeenan
d24ba30fde Add .animate syntax 2021-02-10 07:43:46 -06:00
Grant Sanderson
7b67f4556b Reorganize Mobject methods and remove ones that are not longer needed 2021-01-14 14:15:58 -10:00
Grant Sanderson
f1c32b64cc Default to apply animations over family rather than family_members_with_points 2021-01-12 13:08:01 -10:00
Grant Sanderson
e43b8ef4e4 Remove prepare_for_animation 2021-01-03 17:16:08 -08:00
Grant Sanderson
35a2ade954 Added final_alpha_value parameter to Animation for things like FadeOut 2020-08-30 16:00:42 -07:00
Grant Sanderson
671042cd20 Replace np.clip with clip, and other small changes 2020-02-18 22:43:06 -08:00
Grant Sanderson
19814ecf87 Allow mobject to prepare and cleanup from animations 2020-02-11 19:52:41 -08:00
Grant Sanderson
dc18845a44 Change lag_ratio defaults 2019-03-16 22:13:09 -07:00
Grant Sanderson
776f2707a5 Change default lag_ratio to something very small 2019-02-11 22:25:22 -08:00
Grant Sanderson
08fb372fb7 get_all_families_zipped shouldn't be obligated to return list type 2019-02-11 20:50:07 -08:00
Grant Sanderson
5403237123 Added Animation.get_all_mobjects_to_update 2019-02-09 10:55:23 -08:00
Grant Sanderson
9baae55836 Added create_starting_mobject method, and suspend_mobject_updating config variable 2019-02-09 10:09:19 -08:00
Grant Sanderson
10850c5af6 FadeInAndShiftFromDirection -> FadeInFrom 2019-02-09 09:36:37 -08:00
Grant Sanderson
691d5b7657 Mild reorganization 2019-02-09 08:59:13 -08:00
Grant Sanderson
707a2f6f63 Get rid of lag_factor 2019-02-08 18:42:40 -08:00
Grant Sanderson
cf92cd161e Get rid of all_at_once 2019-02-08 15:49:06 -08:00
Grant Sanderson
f5bf0b39b0 Reimplement Animation.get_sub_alpha based on lag_ratio 2019-02-08 15:38:02 -08:00
Grant Sanderson
98a6c4bff0 Slight change to imports and comments of animation 2019-02-08 14:47:46 -08:00
Grant Sanderson
ec638de1ec Fixed Animation to work for updating mobjects 2019-02-08 12:32:24 -08:00
Grant Sanderson
bf738b70d7 update_submobject -> interpolate_submobject 2019-02-08 12:00:51 -08:00
Grant Sanderson
1c4ff6a556 update_mobject -> interpolate_mobject for Animation, but not for ContinualAnimation 2019-02-08 11:57:27 -08:00
Grant Sanderson
bf3d9c9b5a clean_up -> clean_up_from_scene 2019-02-08 11:00:04 -08:00
Grant Sanderson
f4ddbef136 Get rid of instantiate function 2019-02-08 10:33:08 -08:00
Grant Sanderson
b7cf5e82e3 rate_func can no longer be None, must be a function. Use 'linear' instead of None 2019-02-05 15:39:58 -08:00
Grant Sanderson
c9ea85936f Update mobject at the start of an animation 2019-02-03 12:03:37 -08:00
Devin Neal
3543a750ba move library code into manimlib, replace relative imports with absolute imports 2018-12-26 20:57:01 -08:00
Renamed from animation/animation.py (Browse further)