Commit graph

199 commits

Author SHA1 Message Date
TonyCrane
9bdcc8b635
style: remove quotes of annotations according to PEP 563 2022-02-14 21:41:45 +08:00
TonyCrane
7fb6f352c4
fix: fix some bugs caused by type hints and imports 2022-02-14 20:02:24 +08:00
TonyCrane
a0ed9edb42
resolve conflict 2022-02-14 14:12:06 +08:00
Grant Sanderson
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
TonyCrane
9a8aee481d
chore: add type hints to manimlib.event_handler 2022-02-13 20:03:05 +08:00
TonyCrane
992e61ddf2
style: rename Color type to ManimColor 2022-02-13 19:02:28 +08:00
TonyCrane
e78113373a
chore: add type hints to manimlib.mobject.mobject 2022-02-13 15:11:35 +08:00
YishiMichael
67f5b10626
Attempt to refactor SVGMobject with svgelements (#1731)
* Some small refactors

* Refactor MTex

* Implement TransformMatchingMTex

* Some refactors

* Some refactors

* Some small refactors

* Strip strings before matching

* Implement get_submob_tex

* Use RGB color mode

* Some small refactors

* Try refactoring SVGMobject with svglib

* Refactor SVGMobject using svgelements

* Refactor SVGMobject using svgelements

* Use functions instead of func names as dict values

* style: modify import order to conform to PEP8

* Set default values to None

* modify import order

* Remove unused import

Co-authored-by: TonyCrane <tonycrane@foxmail.com>
2022-02-11 07:53:21 -08:00
TonyCrane
d2e0811285
import Iterable from collections.abc instead of collections 2022-02-04 10:55:59 +08:00
TonyCrane
92adcd75d4
add style support to svg 2022-01-26 13:53:53 +08:00
TonyCrane
1658438fef
allow Mobject.scale receive iterable scale_factor 2022-01-25 14:05:32 +08:00
Grant Sanderson
49743daf32 Add Mobject.insert_submobject method 2021-11-30 11:30:50 -08:00
Grant Sanderson
ba23fbe71e Make sure Mobject.is_fixed_in_frame stays updated with uniforms 2021-11-30 11:30:34 -08:00
Grant Sanderson
5930e6a176 Refresh unit normal when reversing points 2021-11-09 09:15:15 -08:00
Grant Sanderson
81c3ae3037 Have separate notions of gloss and reflectiveness 2021-11-08 21:46:09 -08:00
Grant Sanderson
5a0e5a16ea
Merge pull request #1667 from TurkeyBilly/master
Overridden add operations for mobjects
2021-11-01 13:17:16 -07:00
Grant Sanderson
f0b5181694
Update manimlib/mobject/mobject.py
Small bug fix to Mobject.__add__
2021-11-01 13:16:50 -07:00
Bill Xi
77159eea2e
Update mobject.py 2021-11-01 10:19:06 +08:00
Bill Xi
01f4ef3e5d
Create mobject.py 2021-10-31 20:02:30 +08:00
Bill Xi
b531c82bc4
Update mobject.py 2021-10-31 20:01:16 +08:00
Bill Xi
82540edae9
Update mobject.py 2021-10-31 18:37:12 +08:00
Bill Xi
f9a6fa7036
Update mobject.py 2021-10-31 18:35:28 +08:00
Bill Xi
4eabaecfc8
Update mobject.py 2021-10-31 18:34:23 +08:00
BillyLikesHacking
b1ed16e81a
Update mobject.py 2021-10-22 20:46:47 +08:00
BillyLikesHacking
487f582302
Update mobject.py 2021-10-22 20:02:05 +08:00
BillyLikesHacking
6d0c55d2ba
Update mobject.py 2021-10-22 20:00:27 +08:00
Michael W
b8584fe5ab
Fix parameter typo 2021-10-16 20:59:31 +08:00
Grant Sanderson
9483f26a3b Copy uniform arrays in Mobject.copy 2021-10-03 10:26:47 -07:00
Grant Sanderson
17c2772b84 Add Mobject.replicate 2021-08-28 06:21:51 -07:00
Grant Sanderson
7356a36fa7 Only call self.throw_error_if_no_points once for get_start_and_end 2021-08-21 17:06:37 -07:00
Grant Sanderson
7b4199c674 Call _handle_scale_side_effects after scaling takes place 2021-08-21 10:36:18 -07:00
Grant Sanderson
3bb8f3f042 Add set_max_width, set_max_height, etc. 2021-08-19 14:47:30 -07:00
Grant Sanderson
e151334675 Alternate fix to Decimal scaling issue 2021-08-09 16:06:19 -07:00
Grant Sanderson
bbeba108bc Merge branch 'master' of github.com:3b1b/manim into revert-scale-changes 2021-08-09 15:42:41 -07:00
Grant Sanderson
77ce17679c Change back to simpler Mobject.scale implementation 2021-08-09 15:42:32 -07:00
slowy07
1e621e8278 fix: fix typo spelling grammar 2021-08-07 22:25:26 +07:00
AStarySky
b0fd520382
Update mobject.py
emmm i forgot to swap those
2021-08-04 23:38:21 +08:00
AStarySky
c1e14ef5b6
Update mobject.py 2021-08-04 23:32:59 +08:00
AStarySky
e9470b6bde
Update mobject.py 2021-08-04 23:04:35 +08:00
AStarySky
5c0a1e4b76
fix put_start_and_end_on 2021-08-04 22:52:13 +08:00
TonyCrane
3d5642f3d7 little improvement to Mobject.scale 2021-08-03 15:25:13 +08:00
sahilmakhijani
01670cf823
Fix ControlsExample Scene (#1551) 2021-06-20 15:37:06 +08:00
TonyCrane
26e9b9cd7c added the missing import line in mobject.py 2021-06-19 18:30:23 +08:00
Grant Sanderson
6997cc9501 Have Mobject.match_points return self 2021-03-27 11:57:50 -07:00
Grant Sanderson
6c3e4b94ea Add min_scale_factor to keep Mobjects from shrinking to 0, and hence losing all shape information, unless its purposeful 2021-03-23 08:50:10 -07:00
Grant Sanderson
d06b3769b8 Added Mobject.set_color_by_rgba_func 2021-02-25 08:46:56 -08:00
Grant Sanderson
c700a27cad Remove alignment_vect, as per #1353 2021-02-10 16:49:23 -08:00
Grant Sanderson
d7f3f5ad24 Buf fixes for #1378 2021-02-10 16:45:23 -08:00
Grant Sanderson
17b2efeb71 Move where the Mobject.animate method lives 2021-02-10 13:49:09 -08:00
Grant Sanderson
4ff876b536
Merge pull request #1379 from friedkeenan/3b1b-animate
Add .animate syntax
2021-02-10 13:43:08 -08:00