32 Commits

Author SHA1 Message Date
c7ef8404b7 Video work (#2356)
* Only use -no-pdf for xelatex rendering

* Instead of tracking du and dv points on surface, track points off the surface in the normal direction

This means that surface shading will not necessarily work well for arbitrary transformations of the surface. But the existing solution was flimsy anyway, and caused annoying issues with singularity points.

* Have density of anchor points on arcs depend on arc length

* Allow for specifying true normals and orientation of Sphere

* Change miter threshold on stroke shader

* Add get_start_and_end to DashedLine

* Add min_total_width option to DecimalNumber

* Have BackgroundRectangle.set_style absorb (and ignore) added configuration

Note, this feels suboptimal

* Add LineBrace

* Update font_size adjustment in Tex

* Add scale_factor parameter to BulletedList.fade_all_but

* Minor import tweaks

* Add play_sound

* Small if -> elif update

* Always use Group for FadeTransform

* Use time_spanned_alpha in ChangingDecimal

* Change priority of number_config vs. self.decimal_number_config in NumberLine init

* Fix clock animation

* Allow sample_coords to be passed into VectorField
2025-06-10 08:02:32 -07:00
5d3f730824 Cleaning up some imports + Minor Bug fixed in VectorField (#2253)
* cleaning up imports

* sample_points -> sample_coords
2024-12-05 14:42:46 -08:00
c6b9826f84 Update TimeVaryingVectorField to match new VectorField configuration 2024-11-25 10:50:12 -07:00
90ab2f64bb Clean up style arguments on VectorField 2024-11-25 10:49:29 -07:00
1d0deb8a33 Remove OldVectorfield 2024-11-25 10:14:23 -07:00
753a042dbe Remove unused method 2024-11-25 10:13:44 -07:00
55b12c902c Use density as a parameter instead of step_multiple 2024-11-25 10:13:37 -07:00
0ad5a0e76e Further development on VectorField 2024-11-15 09:07:46 -08:00
64ae1364ca Update the Vector Field interface 2024-11-12 11:21:19 -08:00
217eb6b486 Move new VectorField from optics projects into main repo 2024-09-21 12:16:09 -04:00
88959df7a8 Use set_color instead of set_rgba_array in vector_field 2023-02-02 18:24:12 -08:00
015a7487e7 Remove stray import 2023-01-31 14:20:40 -08:00
1c2ec03f7d Replace VMobject.make_approximately_smooth with VMobject.make_smooth(approx=True) 2023-01-19 11:34:13 -08:00
c96cdf43a1 Make sure mutability of dict arguments won't cause problems
One could argue that a pattern of "arg: dict | None = None" followed by "self.param = arg or dict()" is better, but that would make for an inconsistent pattern in cases where the default argument is not None.
2022-12-18 09:38:28 -08:00
97f28b34f3 Distinguish Vect3 from Vect3Array types 2022-12-17 13:16:48 -08:00
dec11a4b17 Rename np_vector type to Vect3 or Vect4 to make context clearer 2022-12-16 20:35:26 -08:00
43fd5e1aea Move custom type to manimlib.typing 2022-12-16 20:19:18 -08:00
c00af3c1bf Rename config_ops -> dict_ops 2022-12-16 18:59:23 -08:00
0ad2f18ca6 Delete ShowPassingFlashWithThinningStrokeWidth 2022-12-16 10:16:52 -08:00
89770158de Kill CONFIG in vector_field.py 2022-12-16 10:16:13 -08:00
d24b8ff48f Merge branch 'master' into master 2022-04-20 22:40:11 -07:00
1b009a4b03 Simplify Mobject.copy to just use pickle serialization 2022-04-20 22:07:10 -07:00
9ef9961d0e Sort imports 2022-04-12 19:19:59 +08:00
4fbe948b63 style: insert an empty line after import 2022-02-16 21:08:25 +08:00
4c16bfc2c0 chore: add type hints to manimlib.mobject 2022-02-15 14:37:15 +08:00
c1ad893030 Fix a wrong function name. 2021-04-09 22:06:20 +08:00
01d989ba23 Fix a bug for off-center vector fields 2021-03-24 13:58:18 -07:00
ed2e3e80d9 Updates to VectorField 2021-03-18 17:34:16 -07:00
eec396681c Updated VectorField and StreamLines 2021-02-25 08:47:29 -08:00
978137b143 Use super() 2020-06-29 11:04:48 -07:00
abccb4aa8b Small formatting changes 2019-03-19 17:30:37 -07:00
8f73a652ab Begin incorporating div_curl vector field functionality into the main library 2019-03-17 06:42:49 -07:00