Grant Sanderson
744e695340
Misc. clean up ( #2269 )
...
* Comment tweak
* Directly print traceback
Since the shell.showtraceback is giving some issues
* Make InteracrtiveSceneEmbed into a class
This way it can keep track of it's internal shell; use of get_ipython has a finicky relationship with reloading.
* Move remaining checkpoint_paste logic into scene_embed.py
This involved making a few context managers for Scene: temp_record, temp_skip, temp_progress_bar, which seem useful in and of themselves.
* Change null key to be the empty string
* Ensure temporary svg paths for Text are deleted
* Remove unused dict_ops.py functions
* Remove break_into_partial_movies from file_writer configuration
* Rewrite guarantee_existence using Path
* Clean up SceneFileWriter
It had a number of vestigial functions no longer used, and some setup that could be made more organized.
* Remove --save_pngs CLI arg (which did nothing)
* Add --subdivide CLI arg
* Remove add_extension_if_not_present
* Remove get_sorted_integer_files
* Have find_file return Path
* Minor clean up
* Clean up num_tex_symbols
* Fix find_file
* Minor cleanup for extract_scene.py
* Add preview_frame_while_skipping option to scene config
* Use shell.showtraceback function
* Move keybindings to config, instead of in-place constants
* Replace DEGREES -> DEG
2024-12-12 08:39:54 -08:00
Grant Sanderson
fce92347fa
Replace get_global_config() with manim_config, and make it an addict Dict
2024-12-11 09:50:17 -06:00
Grant Sanderson
9ac16ab722
Remove DEFAULT_FPS constant
...
It's a bit silly to have it's valued defined by camera_config, when it's only function is to be a default value for Camera's configuration
2024-12-10 20:19:25 -06:00
Grant Sanderson
9f785a5fba
Move key to int constants to interactive_scene.py
2024-12-10 19:42:53 -06:00
Grant Sanderson
a03accff9c
Rename local colors variable in constants.py
2024-12-10 19:36:19 -06:00
Grant Sanderson
7d3758c44c
Move joint_type_map out of constants to VMobject
2024-12-10 19:33:06 -06:00
Grant Sanderson
f9a44c9975
Make ffmpeg_bin specification a piece of file_writer_config
2024-12-10 19:29:55 -06:00
Grant Sanderson
d5c36de3c5
DEFAULT_MOBJECT_TO_MOBJECT_BUFFER -> DEFAULT_MOBJECT_TO_MOBJECT_BUFF
...
docs / build up document and deploy (push) Waiting to run
And likewise DEFAULT_MOBJECT_TO_MOBJECT_BUFFER -> DEFAULT_MOBJECT_TO_MOBJECT_BUFF
2024-12-10 19:23:15 -06:00
Grant Sanderson
c9b6ee57a8
Make default_wait_time a piece of scene configuration
2024-12-10 19:21:16 -06:00
Grant Sanderson
2c43d293a5
Move arbitrary constant definitions into default_config
...
This should make things like the color palette and frame size more easily customizable.
2024-12-10 19:17:55 -06:00
Grant Sanderson
6b38011078
Refactor config.py
2024-12-10 12:34:18 -06:00
Grant Sanderson
0ef12ad7e4
Move FRAME_HEIGHT back to constants
...
Where it belongs
2024-12-06 12:35:39 -07:00
Grant Sanderson
2e49c60148
Use config.get_resolution for constants
2024-12-06 09:49:21 -06:00
Grant Sanderson
361d9d0652
Minor clean up
2024-12-05 14:42:22 -06:00
Grant Sanderson
0496402c55
Consolidate camera configuration
...
This is still not optimal, but at least makes clearer the way that importing from constants.py kicks off some of the configuration code.
2024-12-05 14:17:53 -06:00
Mitko Nikov
dc731f8bf2
Properly check modifier keys.
2024-10-25 00:01:30 +02:00
Grant Sanderson
6d23df0497
Clean up changes associated with fixing aspect ratio issue
2024-09-06 12:50:19 -05:00
german2020
65e7943ff7
fix aspect_ratio other than 16:9 issue
2023-08-27 13:51:54 +08:00
Grant Sanderson
285953b44d
Add FRAME_SHAPE constant
2023-01-30 11:57:01 -08:00
Grant Sanderson
6ec3d9f4a5
Add 'no_joint' to joint types
2023-01-10 11:06:41 -08:00
Grant Sanderson
75979eb7d1
Add NULL_POINTS constant
2022-12-17 19:48:27 -08:00
Grant Sanderson
dec11a4b17
Rename np_vector type to Vect3 or Vect4 to make context clearer
2022-12-16 20:35:26 -08:00
Grant Sanderson
43fd5e1aea
Move custom type to manimlib.typing
2022-12-16 20:19:18 -08:00
Grant Sanderson
02143001a4
Move RangeSpecifier to constants
2022-12-15 16:46:42 -08:00
Grant Sanderson
4c894077d3
Add np_vector types to constants
2022-12-15 15:24:08 -08:00
Grant Sanderson
5a309d41b7
Undo potentially undefined typing
2022-12-15 11:33:53 -08:00
Grant Sanderson
bab1f964bb
Add types to constants
2022-12-15 09:56:08 -08:00
Grant Sanderson
e8c220a3f2
Add np_vector shorthand type to constants
2022-12-15 09:18:41 -08:00
Grant Sanderson
5571c7d576
Kill config in transform.py
2022-12-14 12:05:33 -08:00
Grant Sanderson
958002152e
Define ManimColor type in constants
2022-12-14 10:55:32 -08:00
Grant Sanderson
6decb0c32a
Rename frame_rate -> fps
2022-05-14 17:47:31 -07:00
Grant Sanderson
2ba9243067
Merge branch 'master' of github.com:3b1b/manim into video-work
2022-04-23 09:03:53 -07:00
Grant Sanderson
b4b72d1b68
Allow stretched-resizing
2022-04-21 15:31:46 -07:00
Grant Sanderson
d24b8ff48f
Merge branch 'master' into master
2022-04-20 22:40:11 -07:00
Grant Sanderson
5a34ca1fba
Add MANIM_COLORS
2022-04-20 21:50:44 -07:00
Grant Sanderson
68e2909af1
Mild cleanup to Scene interactivity
2022-04-20 21:50:37 -07:00
YishiMichael
9ef9961d0e
Sort imports
2022-04-12 19:19:59 +08:00
YishiMichael
6ad8636fab
Adjust some typings ( #1765 )
...
* Adjust some typings
* Adjust typings
2022-03-23 14:17:34 +08:00
Grant Sanderson
df657c06c2
Add (admitedly silly) RADIANS constant
2021-03-31 23:26:35 -07:00
Grant Sanderson
9fb6280f1d
Added colormap
2021-02-25 08:45:15 -08:00
Grant Sanderson
9df136c723
Remove color definition redundancy
2021-02-11 12:24:06 -08:00
Grant Sanderson
e1e7b1e6c1
Changes to make reduce the time of from manimlib import *
2021-02-11 12:22:37 -08:00
Tony031218
314c847463
remove unused NOT_SETTING_FONT_MSG
2021-01-16 09:40:05 +08:00
Grant Sanderson
bf73938fd1
Move joint type map to constants
2021-01-10 14:10:31 -08:00
Grant Sanderson
0b41457d4e
Remove COLORMAPS
2021-01-09 22:09:02 -08:00
Grant Sanderson
fdcc8d4257
Add ability to manipulate a mobjects shader code from python, and in particular to give it a coloring function, e.g. with Mobject.set_color_by_xyz_func
2021-01-09 18:52:54 -08:00
Grant Sanderson
5541d55094
Remove camera quality information from constants
2021-01-02 23:02:39 -08:00
Grant Sanderson
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
Grant Sanderson
32b76bf448
Small move to DEFAULT_PIXEL_HEIGHT, etc. In theory these values shouldn't matter anymore, but it's nice to have some default there for the definition of Camera
2021-01-02 22:38:07 -08:00
Grant Sanderson
6da1836f02
Take scene finding messages out of constants
2021-01-02 22:26:49 -08:00