273 Commits

Author SHA1 Message Date
51efe0d18e Merge branch 'master' of github.com:3b1b/manim into video-work 2023-01-13 20:42:03 -08:00
42909a94ac No need for np.repeat in normalize_along_axis 2023-01-13 20:34:18 -08:00
31cc2671e5 Have line_intersects_path not assume closed path 2023-01-13 16:35:18 -08:00
937b894826 Clean up find_intersection 2023-01-13 16:35:01 -08:00
d2800b6c96 Make sure cross behaves as expected on 2d arrays 2023-01-13 00:05:29 -08:00
de4a56849e Add line_intersects_path 2023-01-12 21:04:46 -08:00
1708fbd672 Updated tqdm to support also notebooks 2023-01-12 12:03:14 +01:00
1a8e923ef2 Small speed ups 2023-01-12 00:40:27 -08:00
21908a48de Change behavior of get_quadratic_approximation_of_cubic to return quintuplets instead of sextuplets 2023-01-11 14:19:33 -08:00
40b9e22b6e Update some type hints in bezier 2023-01-11 14:19:17 -08:00
27db1c5987 Add arrays_match function 2023-01-10 10:25:59 -08:00
9e7cd1399d Add arr_clip (faster alternative to np.clip) 2023-01-08 21:27:56 -05:00
c30b102458 Use re.sub instead of looping over re.findall 2023-01-04 16:39:59 -08:00
7df12c68dc Tiny cleanup 2022-12-29 18:52:13 -08:00
04d3e6a47c Interpolate colors using square of rgbs 2022-12-29 16:07:28 -08:00
1feae23566 Improve num_tex_symbols 2022-12-29 10:37:46 -08:00
596aea3bf5 Update to bezier 2022-12-28 21:06:36 -08:00
34d8ab81f9 Fix for num_tex_symbols 2022-12-28 13:38:15 -08:00
f2859a9a8c Give default curve orientation of 1 2022-12-27 15:53:24 -08:00
22c67df2ad Simplify Scene.remove to not require a Mobject.get_ancestors call 2022-12-26 07:46:40 -07:00
3878b8c077 Fix rotation_between_vectors 2022-12-23 10:04:27 -07:00
baf2690d77 In rotation_between_vectors, account for the case where vectors align 2022-12-22 17:57:47 -07:00
fca7c0609a Factor out epsilon in earclip_triangulation 2022-12-22 11:53:14 -07:00
a4d47f64b0 Fix normalize_along_axis 2022-12-22 11:52:55 -07:00
805236337e Remove stray import 2022-12-21 12:52:32 -08:00
10d53c82e1 Improved num_tex_symbols
Based on data gathered for tex commands
2022-12-21 12:47:18 -08:00
ef941b4040 Factor out num_tex_symbols 2022-12-20 22:35:41 -08:00
1a485ddd19 Ensure color_to_hex always returns 6 character hex codes 2022-12-20 14:31:17 -08:00
75a98a8936 Change color_to_hex implementation 2022-12-19 18:03:53 -08:00
073a62bf03 Factor rgb_to_hex, hex_to_int and int_to_hex away from StringMobject and to utils/color 2022-12-19 17:28:22 -08:00
e0e7e24351 Move display_during_execturion call
Such that it only gets called when a new svg needs to be written
2022-12-19 17:01:06 -08:00
c2c8149627 Revert "Move display_during_exection associated with Latex rendering"
This reverts commit ab470c3ee598e335c4f2252a8802d71a8cc59e93.
2022-12-19 16:54:55 -08:00
5c0232a5e0 Have LatexError show line of error and the next line
This is where undefined control sequence errors will show up.
2022-12-19 16:20:19 -08:00
ab470c3ee5 Move display_during_exection associated with Latex rendering
Only have it display when a new SVG is being written
2022-12-19 16:19:43 -08:00
903e140719 Add from __future__ import annotations 2022-12-18 09:13:11 -08:00
f8b39f2ff1 Allow Scalable type to be any FloatArray 2022-12-18 09:11:16 -08:00
6f0020950f Make Scalable a Typevar 2022-12-17 22:28:53 -08:00
7ac78f3dbb Updating type hints for paths.py 2022-12-17 22:14:53 -08:00
f53fad1a96 Avoid implicit string concatenation 2022-12-17 22:14:43 -08:00
c96a698713 Remove unused drag_pixels 2022-12-17 22:14:30 -08:00
f6ff226cd4 Remove stray imports 2022-12-17 22:14:20 -08:00
4dec67f9fe Move unused (and slightly absurd) dict-related helper functions to 3b1b/videos/once_useful_constructs 2022-12-17 22:00:37 -08:00
0dab04080e No need to have a get_runtime helper when many other options exist 2022-12-17 21:53:15 -08:00
fd20ead11b Update output type for make_even 2022-12-17 21:51:01 -08:00
24fd6d890e Tweak type hints for bezier.py 2022-12-17 18:35:26 -08:00
b817e6f15f Tweak type hints in color.py 2022-12-17 17:29:49 -08:00
5b697b3782 Remove stray import 2022-12-17 17:29:39 -08:00
97f28b34f3 Distinguish Vect3 from Vect3Array types 2022-12-17 13:16:48 -08:00
cef6506920 Add better types + Small refactors on space_ops 2022-12-16 20:35:45 -08:00
43fd5e1aea Move custom type to manimlib.typing 2022-12-16 20:19:18 -08:00