379 Commits

Author SHA1 Message Date
3c778ba678 Add comment to Mobject.animate 2024-03-07 13:27:09 -03:00
a6b46c641b Add Mobject.always and Mobject.f_always
For nicer syntax in creating updaters
2024-03-07 10:17:01 -03:00
1372cf101c Allow VGroup and Group to accept generators and iterables as arguments 2024-03-07 09:23:02 -03:00
5632fee9a3 Ensure get_opacity returns float 2024-02-21 12:25:26 -08:00
2966f358a3 Pull type definitions used for Generic[SubmobjectType] outside of if TYPE_CHECKING block 2024-02-08 14:43:37 -06:00
100b108ad1 Treat Group and VGroup more like list types
This may not be the best way to address it, but at least temporarily it prevents linting issues for calls like VGroup(Circle())[0].get_radius()
2024-02-05 15:02:13 -06:00
ebe689dede Treat is_fixed_in_frame as a float in uniforms, to allow for transformations between 2024-02-03 18:48:54 -06:00
711438f625 Update the types in decorator methods using @wraps
This is method to address issues flagged by pyright
2024-02-03 18:00:47 -06:00
8179ba88d0 Reformat defaults for n_rows and n_cols in Mobject.arrange_in_grid 2024-01-18 11:13:12 -06:00
87e4a71ca3 Add surround method for Rectangles and SurroundingRectangles 2023-09-04 18:46:11 -04:00
4be7f611ec Fix issues with stroke opacities passed as numpy arrays 2023-08-15 20:38:55 -07:00
f01b990c2e Add default Mobject.match_style 2023-06-10 09:21:45 -07:00
fa1080d59a Be sure reverse_points changes data in place 2023-06-10 09:21:32 -07:00
b644bb51de Update submobjects before parents 2023-03-10 11:05:07 -08:00
ad409999dc Small tweak 2023-02-09 15:16:33 -08:00
3bf9e40aba Add more lenient tolerance to Mobject.has_same_shape_as 2023-02-03 17:35:20 -08:00
c4777015fc FIx Mobject.replace_shader_code 2023-02-02 20:47:55 -08:00
7f940fbee4 Change how ShaderWrapper uniforms are handled 2023-02-02 17:45:52 -08:00
ad2e7144b4 Lock uniform keys, the same way data keys are 2023-02-02 16:17:26 -08:00
e36719a21b Use resize_points in Mobject.set_data 2023-02-02 15:37:10 -08:00
c4d698a169 Have Transform only copy target_mobject if it must 2023-02-02 15:36:58 -08:00
0e60b124eb Only compute const_data_keys for unlocked data 2023-02-02 15:02:55 -08:00
63dbe3b23f More direct check for family_members_with_points 2023-02-02 14:32:55 -08:00
4ec2e8b0c5 Merge branch 'master' of github.com:3b1b/manim into video-work 2023-02-02 11:22:58 -08:00
ab6a7df4af Use typing_extensions to import Self for python versions <3.11 2023-02-02 10:54:47 -08:00
47672d3b1e Add checks for setting submobjects with existing list 2023-02-01 22:52:59 -08:00
40bcb7e0f3 Accept list of Vect3 as an input to Mobject.set_points 2023-02-01 13:02:56 -08:00
04733ac32e Default to fully opaque background rectangle 2023-02-01 11:20:09 -08:00
93e65fa3e7 Prevent needless extra copying in Mobject.copy 2023-01-31 15:37:23 -08:00
077f264890 In Mobject.become, match needs_new_bounding_box status 2023-01-31 14:48:26 -08:00
1e46847a69 Use Iterator type for Mobject.__iter__ 2023-01-31 14:32:32 -08:00
4c327cd5d2 Merge branch 'add-self-type' into video-work 2023-01-31 14:26:31 -08:00
b58224f6c8 Add Self type to vectorized_mobject.py 2023-01-31 13:43:54 -08:00
50343e9629 Add Self type to mobject.py 2023-01-31 13:31:48 -08:00
a4d9b101de Whoops, make sure deepcopy actually returns 2023-01-31 12:53:25 -08:00
5952f9ea74 Make sure rgbas will be resized if bigger than Mobject.data 2023-01-31 09:48:23 -08:00
57deab6617 Fix ControlsExample 2023-01-31 09:08:38 -08:00
f8cfcfbc64 Fix EventListener typo 2023-01-31 09:08:24 -08:00
15d8ebb572 Add Mobject.set_shape 2023-01-30 11:53:15 -08:00
ab03a0cfba Add Mobject.set_uniform 2023-01-28 11:35:15 -08:00
05a80f53a7 Make sure depth test calls map to the whole family 2023-01-28 10:37:34 -08:00
1a62314719 Add a "clear" option for Mobjects
This not only sets the submobject list to 0, but removes self from the parent lists
2023-01-28 10:11:22 -08:00
047128a663 Make sure shader_wrapper inherits depth test 2023-01-27 19:27:42 -08:00
d5b1a1725d Allow Mobject.remove to remove any family member, not just immediate submobjects 2023-01-27 15:15:16 -08:00
35c19fe8a7 Edit is_fixed_in_frame 2023-01-27 14:48:31 -08:00
86fb1d82f5 Typo fix 2023-01-26 23:44:33 -08:00
2863672740 Small clean up 2023-01-26 23:05:09 -08:00
eab8edd51d Remove needless list(...) 2023-01-26 22:41:36 -08:00
1bd6a77151 Don't use @stash_mobject_pointers on copy, be more explicit 2023-01-26 20:59:36 -08:00
258bc2256a Provide a check that shader uniforms really need updating before setting value 2023-01-26 20:01:59 -08:00