Commit graph

1711 commits

Author SHA1 Message Date
Grant Sanderson
c96bdc243e Update Scene.embed to play nicely with gui interactions 2022-04-22 08:16:17 -07:00
Grant Sanderson
5927f6a1cd Default to "" for scene_file_writer output dir 2022-04-22 08:14:29 -07:00
Grant Sanderson
1b2460f02a Remove refresh_shader_wrapper_id from Mobject.become 2022-04-22 08:14:05 -07:00
Grant Sanderson
b4b72d1b68 Allow stretched-resizing 2022-04-21 15:31:46 -07:00
Grant Sanderson
78a7078772 Move saved mobject directory logic to scene_file_writer.py 2022-04-21 15:02:11 -07:00
Grant Sanderson
4caa033323 Allow for sweeping selection 2022-04-21 15:01:54 -07:00
Grant Sanderson
3a60ab144b Remove saved mobject directory logic from InteractiveScene 2022-04-21 15:01:30 -07:00
Grant Sanderson
f53f202dcd A few small cleanups 2022-04-21 15:00:58 -07:00
Grant Sanderson
9d5e2b32fa Add VHighlight 2022-04-21 14:32:39 -07:00
Grant Sanderson
fe3e10acd2 Updates to copying based on pickle serializing 2022-04-21 14:32:27 -07:00
Grant Sanderson
c04615c4e9 In Mobject.set_uniforms, copy uniforms that are numpy arrays 2022-04-21 14:30:39 -07:00
Grant Sanderson
6474e25fcd A few small updates to InteractiveScene 2022-04-21 00:28:37 -07:00
Grant Sanderson
996d71c49e Add fallback for Mobject copying for unpicklable objects 2022-04-20 22:53:49 -07:00
Grant Sanderson
485a4ca33a
Merge pull request #1794 from 3b1b/video-work
InteractiveScene, etc.
2022-04-20 22:22:09 -07:00
Grant Sanderson
cc563bf5e2
Merge pull request #1787 from lakscastro/patch-1
Remove unused import
2022-04-20 22:19:17 -07:00
Grant Sanderson
1b009a4b03 Simplify Mobject.copy to just use pickle serialization 2022-04-20 22:07:10 -07:00
Grant Sanderson
c3afc84bfe Add a rudimentary InteractiveScene to allow for Mobject editing in a GUI fashion 2022-04-20 21:54:16 -07:00
Grant Sanderson
4f2e3456e2 Raise Specific exception type when running into latex errors 2022-04-20 21:53:05 -07:00
Grant Sanderson
47636686cb Cleanup extract_mobject_family_members 2022-04-20 21:51:56 -07:00
Grant Sanderson
eae7dbbe6e Change default transparent background codec to be prores 2022-04-20 21:51:36 -07:00
Grant Sanderson
a3579eab41 Have SceneFileWriter handle a location for saved mobjects 2022-04-20 21:51:18 -07:00
Grant Sanderson
5a34ca1fba Add MANIM_COLORS 2022-04-20 21:50:44 -07:00
Grant Sanderson
68e2909af1 Mild cleanup to Scene interactivity 2022-04-20 21:50:37 -07:00
Grant Sanderson
777b6d3778 Allow for saving and loading mobjects from file at the Scene level 2022-04-20 21:49:57 -07:00
Grant Sanderson
97400a5cf2 Update Scene.save_state and Scene.restore 2022-04-20 21:49:38 -07:00
Grant Sanderson
cb768c26a0 Add functionality for recovering mobjects from their ids (to enable copying and pasting) 2022-04-20 21:48:58 -07:00
Grant Sanderson
fdeab8ca95 Make sure AnimationGroup plays nicely with setting mobject animation status 2022-04-20 21:47:47 -07:00
Grant Sanderson
b09e6916dc Remove VMobject.get_highlight 2022-04-20 21:47:12 -07:00
Grant Sanderson
a0c46ef3bf Have set_animating_status recurse over family 2022-04-20 21:46:43 -07:00
Grant Sanderson
4839037503 Update Mobject.make_movable to recurse over family 2022-04-20 21:44:42 -07:00
Grant Sanderson
f636199d9a Add Mobject.get_all_corners 2022-04-20 21:43:16 -07:00
Grant Sanderson
50f5d20cc3 Allow for saving and loading mobjects from file 2022-04-20 21:42:59 -07:00
Grant Sanderson
2dd2fb500e Remove Mobject.get_highlight 2022-04-20 21:42:22 -07:00
Grant Sanderson
c1716895c0 Add Mobject.is_touching 2022-04-20 21:42:07 -07:00
Grant Sanderson
135f68de35 Update Mobject.is_point_touching 2022-04-20 21:41:47 -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
Grant Sanderson
5a91c73b23 Merge branch 'master' of github.com:3b1b/manim into video-work 2022-04-14 14:40:14 -07:00
Grant Sanderson
5e49f20294 Add VMobject.get_highlight 2022-04-14 14:37:50 -07:00
Grant Sanderson
29816fa74c Add get_highlight 2022-04-14 14:37:38 -07:00
Grant Sanderson
95f56f5e80 Be sure has_updater_status is properly updated after clear 2022-04-14 14:37:12 -07:00
Grant Sanderson
6a01e36b36 Minor cleanup 2022-04-14 14:36:17 -07:00
Grant Sanderson
845ee83f71
Merge pull request #1791 from 3b1b/fix_image_mobject
Fix `ImageMobject` by overriding `set_color` method
2022-04-12 08:13:01 -07:00
TonyCrane
55684af27d
fix: fix ImageMobject by overriding set_color method 2022-04-12 20:20:03 +08:00
Grant Sanderson
dc4b9bc93c Use outer_interpolate for NumberLine.number_to_point 2022-04-11 10:47:26 -07:00
Grant Sanderson
705f1a528b Separate functionality of ordinary linear interpolation from that using np.outer on arrays 2022-04-11 10:47:11 -07:00
Grant Sanderson
e8ac25903e Add case for zero vectors on angle_between_vectors 2022-04-11 09:59:24 -07:00
Grant Sanderson
773520bcd9
Merge pull request #1785 from YishiMichael/master
Fix bug when handling multi-line tex
2022-04-11 09:52:51 -07:00
YishiMichael
12bfe88f40
Some refactors 2022-04-11 23:44:33 +08:00
lask
31cbf2d905
Remove unused improt 2022-04-10 20:00:10 -03:00
YishiMichael
36d62ae1a3
Add regex parameter 2022-04-10 09:23:53 +08:00