Commit graph

287 commits

Author SHA1 Message Date
Grant Sanderson
494e04405c Refresh all family shader data in align_data 2023-01-09 20:10:06 -08:00
Grant Sanderson
fc86bf7f9e Specify that uniforms can be numpy arrays 2023-01-09 11:56:21 -08:00
Grant Sanderson
66f0a57c6b Clean up looks_identical 2022-12-29 20:58:37 -08:00
Grant Sanderson
5d87f3f954 Update parents of new_mob in Mobject.replace 2022-12-29 19:42:54 -08:00
Grant Sanderson
4db01fd221 Fix Mobject.looks_identical 2022-12-29 18:53:06 -08:00
Grant Sanderson
5c33c7e4a8 Remove "None" output type for set_animating_status 2022-12-29 18:52:37 -08:00
Grant Sanderson
d6d75d8f9a Change from np.all(arr) to arr.all() 2022-12-29 15:50:35 -08:00
Grant Sanderson
3738f0a48e Add Mobject.has_same_shape_as 2022-12-29 12:02:28 -08:00
Grant Sanderson
9018357d20 Fix Mobject.looks_identical 2022-12-29 12:02:20 -08:00
Grant Sanderson
53f19b6620 Remove @staticmethod from @wraps functions 2022-12-28 21:36:21 -08:00
Grant Sanderson
a6e21b2ccd Change Mobject.append_points
For future plans, it may be nicest for data["points"] to only ever get redefined by Mobject.resize_points
2022-12-28 09:22:22 -08:00
Grant Sanderson
97be203b57 Add type hint 2022-12-28 08:45:18 -08:00
Grant Sanderson
61155f5c72 Simplify Mobject.set_points 2022-12-28 08:45:05 -08:00
Grant Sanderson
e73ae78987 Update Mobject.has_points 2022-12-27 22:18:41 -08:00
Grant Sanderson
db0770a4fd Remove **kwargs from Mobject.__init__ 2022-12-26 07:58:40 -07:00
Grant Sanderson
db52d0a73f Add type hints and @staticmethod decorators to wraps functions 2022-12-23 17:45:35 -07:00
Grant Sanderson
580d57a45c Add type hints and @staticmethod decorators to wraps functions 2022-12-23 17:44:00 -07:00
Grant Sanderson
3f024175d4 Add check for invalid entries to Mobject.set_points 2022-12-17 19:52:34 -08:00
Grant Sanderson
365bb12dce Change type hints for set_points and append_points to Vect3Array 2022-12-17 19:31:43 -08:00
Grant Sanderson
0e558db122 Add a few type hints to specify VMobject family always consists of VMobjects 2022-12-17 17:03:34 -08:00
Grant Sanderson
97f28b34f3 Distinguish Vect3 from Vect3Array types 2022-12-17 13:16:48 -08:00
Grant Sanderson
dec11a4b17 Rename np_vector type to Vect3 or Vect4 to make context clearer 2022-12-16 20:35:26 -08:00
Grant Sanderson
43fd5e1aea Move custom type to manimlib.typing 2022-12-16 20:19:18 -08:00
Grant Sanderson
afab37c2d2 Remove stray digest_config references 2022-12-16 11:00:59 -08:00
Grant Sanderson
a1cbff46b8 Remove CONFIG vestiges 2022-12-16 10:54:28 -08:00
Grant Sanderson
f64cae1db4 Push depth_test into __init__ args 2022-12-16 09:56:03 -08:00
Grant Sanderson
451f1df830 Small nudge to import order 2022-12-15 20:11:32 -08:00
Grant Sanderson
98c53151ad Correct type for texture_paths 2022-12-15 09:55:50 -08:00
Grant Sanderson
133ac8bb26 Kill CONFIG in mobject.py 2022-12-15 09:18:22 -08:00
Grant Sanderson
53994f0650 Add shorthand for type np.ndarray[int, np.dtype[np.float64]] 2022-12-14 16:17:15 -08:00
Grant Sanderson
958002152e Define ManimColor type in constants 2022-12-14 10:55:32 -08:00
Grant Sanderson
12d4b48508 Make sure animating status propagates through ancestors 2022-11-18 09:11:47 -08:00
Grant Sanderson
a4ffe9b4e5 Allow group_by_rows and group_bg_cols option for creating grids 2022-11-18 09:11:29 -08:00
Grant Sanderson
b6dd640fe7 Add Mobject.reverse_submobjects 2022-11-18 09:10:44 -08:00
Grant Sanderson
84fa3de435 By default, don't let Mobject.become match updaters
This causes the use of Mobject.become in an updater function to make the mobject immediately lose its updater.

https://github.com/3b1b/manim/issues/1877
2022-11-03 16:35:41 -07:00
Grant Sanderson
8e6265d35e Give set_color_by_gradient more expected behavior
https://github.com/3b1b/manim/issues/1882
2022-11-03 16:17:17 -07:00
Grant Sanderson
80d34547db Typo fix 2022-11-03 11:32:25 -07:00
Grant Sanderson
88f2ae6d0d Merge branch 'master' of github.com:3b1b/manim into video-work 2022-09-13 14:08:15 -07:00
widcardw
603a773847 fix: pass args by calling animate that borrowed from CE 2022-09-11 22:59:43 +08:00
widcardw
2f691355db chore: add doc-string of set_anim_args 2022-09-11 10:31:30 +08:00
widcardw
a613099b1d feat: add set_anim_args to .animate method 2022-09-11 10:22:08 +08:00
Grant Sanderson
cc81cc5cf5 Move unit normal refreshing to VMobject 2022-07-19 12:37:34 -07:00
Grant Sanderson
dfa019fcde Make sure Mobject.become remaps any attributes pointing to family members appropriately. 2022-05-29 16:37:44 -07:00
Grant Sanderson
cd866573b5 Add about_edge argument to arrange_to_fit_width, etc. 2022-05-11 12:45:06 -07:00
Grant Sanderson
a87d3b5f59 Add Mobject.arrange_to_fit_dim 2022-05-03 12:40:43 -07:00
Grant Sanderson
c1b222c233 Set default buff for is_point_touching to 0 2022-04-28 11:59:56 -06:00
Grant Sanderson
ec9ed32d78 Organize get_ancestors from top to bottom 2022-04-27 09:53:23 -07:00
Grant Sanderson
0e45b41fea Match updaters in Mobject.become 2022-04-27 09:52:44 -07:00
Grant Sanderson
c498b88750 Small tweaks to Mobject.looks_identical for marginal speed 2022-04-27 09:52:27 -07:00
Grant Sanderson
aaea3f40f6 Don't copy Mobject attrs which are mobject but not family members 2022-04-25 10:26:07 -07:00