Commit graph

1740 commits

Author SHA1 Message Date
Grant Sanderson
28c875c2c3 Finish Transforms with a call to Mobject.become 2023-01-26 16:49:13 -08:00
Grant Sanderson
164c9ba754 Use copy in set_data 2023-01-26 16:46:05 -08:00
Grant Sanderson
8ef71bb930 Don't use 'become' for interpolate at alpha = 0 or 1 2023-01-26 16:43:40 -08:00
Grant Sanderson
a8da171adb Make sure a group inherits the fixed_in_frame status of its parts 2023-01-26 15:58:56 -08:00
Grant Sanderson
a33b24310e Fix non-winding-fill orientation 2023-01-26 12:15:30 -08:00
Grant Sanderson
c6c23a1fe7 Unnecessary refresh_bounding_box 2023-01-26 12:06:13 -08:00
Grant Sanderson
f5cb2bfa52 Check for mismatched keys in uniform interpolation 2023-01-26 12:06:05 -08:00
Grant Sanderson
05dd399270 Ensure svgs have positive orientation by default 2023-01-26 12:04:58 -08:00
Grant Sanderson
72590a8fef Note that using winding fill changes data 2023-01-26 12:04:34 -08:00
Grant Sanderson
cb36fda6d7 In interpolate, only update data status if some keys are unlocked 2023-01-25 19:24:19 -08:00
Grant Sanderson
88590e5a05 Remove serializing deepcopy 2023-01-25 19:23:55 -08:00
Grant Sanderson
018b07212f Change how joint_products are updated in pointwise_become_partial 2023-01-25 16:50:52 -08:00
Grant Sanderson
d2af6a5f4b Keep track of when Mobject data has changed, and used that to determine when ShaderWrapper generates new buffers 2023-01-25 16:43:47 -08:00
Grant Sanderson
424707d035 Move rendering more fully away from Camera to Mobject and ShaderWrapper 2023-01-25 14:13:56 -08:00
Grant Sanderson
2c737ed540 Move most of rendering logic to ShaderWrapper 2023-01-25 13:45:18 -08:00
Grant Sanderson
c94d8fd3b0 Move Texture handling and vao creation outside of Camera 2023-01-25 12:10:39 -08:00
Grant Sanderson
10047773f7 Have ShaderWrapper track OpenGL context 2023-01-25 10:49:30 -08:00
Grant Sanderson
16d773f1b3 Remove refresh_shader_data 2023-01-25 10:48:59 -08:00
Grant Sanderson
80729c0cb8 Only initialize ShaderWrappers as needed 2023-01-25 10:37:12 -08:00
Grant Sanderson
8c1e5f3b42 Change use_clip_plane to be a function 2023-01-25 10:31:05 -08:00
Grant Sanderson
a9a3ca08cd
Merge pull request #1972 from 3b1b/winding-fill
Winding fill
2023-01-25 10:01:31 -08:00
Grant Sanderson
bc5c78de83 Add winding fill to VMobject args 2023-01-25 09:56:07 -08:00
Grant Sanderson
0ea91f22b2
Merge pull request #1971 from 3b1b/video-work
Video work
2023-01-25 09:54:55 -08:00
Grant Sanderson
93dd9f687b Ensure align_family works well with VMobject fill 2023-01-25 09:50:16 -08:00
Grant Sanderson
6cf8c8d2e8 Do refresh in pointwise_become_partial 2023-01-24 21:47:12 -08:00
Grant Sanderson
346d252451 Don't save triangulation, but do orient svg paths positively 2023-01-24 21:33:00 -08:00
Grant Sanderson
307487e087 Don't pre-normalize joint_products 2023-01-24 21:10:26 -08:00
Grant Sanderson
98eccab977 Ensure background rectangle matches orientation 2023-01-24 20:03:33 -08:00
Grant Sanderson
f0df5c759d Make winding fill optional, and make winding additive rather than toggling 2023-01-24 20:03:23 -08:00
Grant Sanderson
72da9786a3 Use null array for vert indices in place of None 2023-01-24 15:53:43 -08:00
Grant Sanderson
b93e284695 In aligning families, scale inserted submobjects to 0 2023-01-24 15:29:09 -08:00
Grant Sanderson
945aa9713f Fix aligned subpaths bug 2023-01-24 15:02:06 -08:00
Grant Sanderson
87afdac6a4 Small clean up 2023-01-24 14:09:41 -08:00
Grant Sanderson
6e56c31d67 Use gl_InstanceID instead of hacking triangle_strip 2023-01-24 13:49:43 -08:00
Grant Sanderson
4774d2bc3b First pass at a winding-based fill approach 2023-01-24 13:29:34 -08:00
Grant Sanderson
d01658bc5b Fix multi-color setting 2023-01-24 13:04:13 -08:00
Grant Sanderson
8ce5dc7e84 Add DieFace to drawings.py 2023-01-23 11:53:30 -08:00
Benjamin Bastian
b934ee5f50
Make isinstance check work for python 3.7-3.9 (#1969) 2023-01-23 11:36:51 +08:00
Grant Sanderson
847c27ad23 Remove stray import 2023-01-22 09:45:50 -08:00
Grant Sanderson
9e02796c9a Fix set_width for variable stroke width 2023-01-20 21:38:48 -08:00
Grant Sanderson
917481cb23 Always refresh in pointwise_become_partial 2023-01-20 20:33:23 -08:00
Grant Sanderson
9249433144 Don't pass uv_func from SGroup 2023-01-20 16:26:06 -08:00
Grant Sanderson
7df6efb55f Handle edge case of false endpoints in make_smooth 2023-01-20 10:08:12 -08:00
Grant Sanderson
2290f810ca Small tweaks to number_to_point 2023-01-19 20:25:29 -08:00
Grant Sanderson
1c2ec03f7d Replace VMobject.make_approximately_smooth with VMobject.make_smooth(approx=True) 2023-01-19 11:34:13 -08:00
Grant Sanderson
dbeef42600 In VMobject.set_stroke, Don't use resize_with_interpolation for non-list args 2023-01-19 09:56:26 -08:00
Grant Sanderson
93f3c6535f Have DecimalMobject save pre-generated characters 2023-01-19 09:55:56 -08:00
Grant Sanderson
763967281f Don't use resize_with_interpolation by default 2023-01-19 09:51:19 -08:00
Grant Sanderson
1367e31439 Fix bug with polygon start angle = 0 2023-01-19 09:50:41 -08:00
Grant Sanderson
e6abff4299 Speed up bind_graph_to_func 2023-01-19 09:50:24 -08:00