66 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
7565e936fa Better bubble flipping 2024-03-25 19:10:16 -03:00
1d6aa47933 Reimplement SpeechBubble and ThoughtBubble 2024-03-21 14:36:17 -03:00
63f6e9d84f Add Dartboard 2023-06-10 09:21:57 -07:00
de8e9e5ec1 Fix error with setting bubble direction 2023-03-14 10:35:04 -07:00
a79d4a862f Keep track of dots in DieFace 2023-02-24 08:22:24 -05:00
f2d71e6521 Don't rotate Laptop into place 2023-01-31 09:20:05 -08:00
8d72340501 Remove some references to triangulation 2023-01-28 12:43:56 -08:00
8ce5dc7e84 Add DieFace to drawings.py 2023-01-23 11:53:30 -08:00
c3cd64f68c Package reflectiveness, gloss and shadow into a single uniform "shading" 2023-01-16 19:33:57 -08:00
c8a77a352f Fix Piano 2023-01-13 00:24:19 -08:00
dd2fb6ae74 Delete refresh_unit_normal 2022-12-23 10:23:57 -07:00
33682b7199 MTex is the new Tex, Tex is now OldTex
Global replace
Tex -> OldTex
TexText -> OldTexText
MTex -> Tex
MTexText -> TexText
2022-12-21 13:18:20 -08:00
6d5b980d4a Replace Tex and MTex throughout library 2022-12-20 15:22:34 -08:00
3293f72adc Move BulletedList, TexTextFromPresetString and Title to their own file 2022-12-20 14:48:54 -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
a78e2b6ad2 Specify ManimColor type 2022-12-15 15:40:46 -08:00
c56968fd09 Cleaner imports 2022-12-15 15:23:59 -08:00
c8d01e7a43 Kill CONFIG in drawings.py 2022-12-15 14:28:34 -08:00
aac320aa98 Update Checkmark and Exmark definitions 2022-12-15 11:33:14 -08:00
0d845d5bba Bubble tweaks 2022-05-29 16:37:53 -07:00
ca523c8a5e Fix bubble direction 2022-05-23 11:07:51 -07:00
9ef9961d0e Sort imports 2022-04-12 19:19:59 +08:00
66819f5dbc Add 2d and 3d pianos 2022-03-17 12:00:29 -07:00
0cab23b2ba Reorganize inheriting order of SVGMobject 2022-02-15 20:16:15 +08:00
602809758e Video work (#1739)
* Enable setting points to a null list, and adding one point at a time.

* Add refresh_locked_data

* Add presenter mode to scenes with -p option

* Allow for an embed by hitting e during interaction

* Add set_min_height, etc.

* Make sure null parametric curve has at least one point

* Account for edge case where \{ is used in Tex

* Allow for logging notes in wait calls, useful for presenter mode

* Simplify choose, and add gen_choose for fractional amounts

* Default to no top on axes

* Allow match_x, match_y, etc. to take in a point

* Allow wait calls to ignore presenter mode

* Just use math.combo, no caching with choose(n, r)

* Use generator instead of list in bezier

* Bubble init_colors should override

* Account for "px" values read in from an svg

* Stop displaying when writing is happening

* Update the way Bubble override SVG colors
2022-02-13 15:16:16 -08:00
f1996f8479 Small hack for the lightbulb, needs to be fixed properly later 2021-12-21 10:58:33 -08:00
deb1311e48 Fix VideoIcon 2021-10-24 09:28:52 -07:00
607ef334e9 Fix Lightbulb 2021-06-14 09:56:35 -07:00
f91c81dd6a Rename TexMobject -> Tex and TextMobject -> TexText 2021-01-18 08:20:14 -10:00
5b454a3ff7 Remove rotate_in_place and scale_in_place methods, as they had the same functionality as rotate and scale 2021-01-05 22:05:15 -08:00
b22f1ab715 Remove reference to FILE_DIR 2021-01-03 17:25:37 -08:00
3b26a6c260 Clean up colors, e.g. replacing LIGHT_GREY and DARK_GREY with GREY_B and GREY_D 2021-01-02 22:44:53 -08:00
915b7ea3ad Removed some drawings specific to 3b1b videos 2021-01-01 20:20:48 -08:00
5a238f1551 Removed Logo from drawings 2021-01-01 20:12:02 -08:00
3a1f07492c Moved 3b1b specific content out of this project 2020-12-31 13:04:13 -08:00
26834178e7 Bug fix to Bubble 2020-08-16 09:45:48 -07:00
c653610215 Add Checkmark and Exmark 2020-06-22 15:22:29 -07:00
8384b8b46b Fix bug with clock 2020-03-27 12:04:30 -07:00
6e0ae83685 Small fixes 2020-02-27 17:17:53 +00:00
01cda8a130 Fix a few problems with PlayingCard 2020-02-18 22:31:49 -08:00
6e932a24d2 Change defaults on when triangulation is locked...again 2020-02-17 14:01:46 -08:00
574b464a3c get_critical_point -> get_bounding_box_point 2020-02-13 10:54:09 -08:00
9835813679 Rename generate_points to init_points 2020-02-11 19:55:00 -08:00
0f71b0a408 Playing wiht logo 2020-01-11 17:13:02 -08:00
f3048eb574 Fixed bug with Bubble 2019-06-23 16:26:05 -07:00
2294cdea4f Allow Bubble to flip over any axis, which was unnecessarily restricted before 2019-06-19 16:08:14 -07:00
d5eecb8137 Tiny changes to Clock 2019-04-06 14:01:17 -07:00