Commit graph

2228 commits

Author SHA1 Message Date
Grant Sanderson
47d0dca087 Check for null curve 2023-01-08 23:58:45 -05:00
Grant Sanderson
16390283cf Small cleanup for fill shader 2023-01-08 23:34:02 -05:00
Grant Sanderson
89d9e260eb Various cleanups for stroke shader 2023-01-08 23:33:39 -05:00
Grant Sanderson
ae2a253fb1 Just pass one bevel parameter rather than two 2023-01-08 21:56:38 -05:00
Grant Sanderson
0136cef1d9 Minor simplifications for stroke shader 2023-01-08 21:53:43 -05:00
Grant Sanderson
2bf1f5eb40 Make sure pointwise_become_partial doesn't needlessly refresh joint angles 2023-01-08 21:29:35 -05:00
Grant Sanderson
21051ce289 Performance improvement for get_joint_angles 2023-01-08 21:29:08 -05:00
Grant Sanderson
9e7cd1399d Add arr_clip (faster alternative to np.clip) 2023-01-08 21:27:56 -05:00
Grant Sanderson
d5fdc75164 Remove the need to track previous and next joints in stroke shader 2023-01-08 20:29:31 -05:00
Grant Sanderson
cae13aa1f0 Add space 2023-01-08 10:15:22 -05:00
Grant Sanderson
9b2495abb1 Remove "orientation" from locked_keys when recomputed
Rather than re-reading into fill_data
2023-01-05 08:46:12 -05:00
Grant Sanderson
f5455bb554 Avoid using set_points in Rotation 2023-01-05 08:29:59 -05:00
Grant Sanderson
0d433b075e Fix bug associated with orientation data not always getting written
This might reflect a deeper issue with the locked_data sometimes being _too_ locked.
2023-01-04 17:18:10 -08:00
Grant Sanderson
0c1abebd95 Don't save last frame by default 2023-01-04 16:39:59 -08:00
Grant Sanderson
1cf89abf53 No need to track vertex index manually 2023-01-04 16:39:59 -08:00
Grant Sanderson
c30b102458 Use re.sub instead of looping over re.findall 2023-01-04 16:39:59 -08:00
Grant Sanderson
4c1f1f8749 Clean up TransformMatchingStrings 2022-12-30 15:09:07 -08:00
Grant Sanderson
3aa9eb6372 Add String.get_symbol_substrings and Tex.get_symbol_substrings 2022-12-30 15:07:41 -08:00
Grant Sanderson
4335e85659 Abstract away logic of TransformMatchingStrings to a new version of TransformMatchingParts 2022-12-30 13:54:55 -08:00
Grant Sanderson
96bc95ef38 Allow FadeTransform to group parts as VGroup if applicable 2022-12-30 13:53:32 -08:00
Grant Sanderson
cec43dfe51 Use Vect3 type in fading.py 2022-12-30 13:53:12 -08:00
Grant Sanderson
66f0a57c6b Clean up looks_identical 2022-12-29 20:58:37 -08:00
Grant Sanderson
dddaef0e6c Add lru_cache for get_shader_code_from_file 2022-12-29 20:51:11 -08:00
Grant Sanderson
7895a2cfee No need to immediately compute triangulation for SVG paths 2022-12-29 20:51:00 -08:00
Grant Sanderson
7dde368eeb Ensure error-flash rect is fixed in frame 2022-12-29 20:18:19 -08:00
Grant Sanderson
8e3378f798 Orient Camera.get_pixel_array correctly 2022-12-29 20:17:54 -08:00
Grant Sanderson
5d87f3f954 Update parents of new_mob in Mobject.replace 2022-12-29 19:42:54 -08:00
Grant Sanderson
3b4a233bb1 Fix LaggedStartMap 2022-12-29 18:53:26 -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
7df12c68dc Tiny cleanup 2022-12-29 18:52:13 -08:00
Grant Sanderson
0f9adbf91c Add Tex.make_number_changable 2022-12-29 18:52:00 -08:00
Grant Sanderson
04d3e6a47c Interpolate colors using square of rgbs 2022-12-29 16:07:28 -08:00
Grant Sanderson
d6d75d8f9a Change from np.all(arr) to arr.all() 2022-12-29 15:50:35 -08:00
Grant Sanderson
2dbb9367c4 Default to removing null curves 2022-12-29 15:40:32 -08:00
Grant Sanderson
4bc7e3a8f2 Remove redundant long_line specification 2022-12-29 15:40:18 -08:00
Grant Sanderson
ba68505c18 Flash around border on exceptions in Scene.embed 2022-12-29 15:08:57 -08:00
Grant Sanderson
71815fd7de Add (optional) error sound for exceptions in Scene.embed 2022-12-29 14:58:40 -08:00
Grant Sanderson
cba101995f Allow for customizable exception display mode with Scene.embed 2022-12-29 14:38:25 -08:00
Grant Sanderson
4e014d7a8f Have get_scene_config automatically find intersection of Scene parameters and config keys
Previously it required duplicating any new parameter
2022-12-29 14:36:50 -08:00
Grant Sanderson
13fc8daba9 Extend StringMobject.select_unisolated_substring to work for regular expressions 2022-12-29 14:18:46 -08:00
Grant Sanderson
a54a81744d Have ShaderWrapper.combine_with do nothing for empty arg list 2022-12-29 12:04:35 -08:00
Grant Sanderson
3165a28cd0 Clean up and fix VMobject.get_shader_wrapper_list 2022-12-29 12:04:01 -08:00
Grant Sanderson
25ac5f3507 Use Mobject.1.has_same_shape_as in TransformMatchingStrings 2022-12-29 12:03:17 -08:00
Grant Sanderson
ef09d6fce2 Allow for AnimationGroup to specify that parts belong to a VGroup 2022-12-29 12:02:48 -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
4330f78ed6 Enable lag_ratio for TransformMatchingStrings 2022-12-29 10:44:52 -08:00
Grant Sanderson
1feae23566 Improve num_tex_symbols 2022-12-29 10:37:46 -08:00
Grant Sanderson
53f19b6620 Remove @staticmethod from @wraps functions 2022-12-28 21:36:21 -08:00