Commit graph

97 commits

Author SHA1 Message Date
Grant Sanderson
afab37c2d2 Remove stray digest_config references 2022-12-16 11:00:59 -08:00
Grant Sanderson
9e077b29db Specify fill_color/stroke_color instead of color 2022-12-16 09:55:50 -08:00
Grant Sanderson
2a645b27f8 Kill CONFIG in geometry.py 2022-12-15 18:19:09 -08:00
Grant Sanderson
a901704b31 Return self in Circle.surround 2022-12-14 14:39:57 -08:00
Grant Sanderson
958002152e Define ManimColor type in constants 2022-12-14 10:55:32 -08:00
Grant Sanderson
8adf99b8a7 Fix Circle.point_at_angle
https://github.com/3b1b/manim/issues/1875
2022-11-03 16:48:30 -07:00
Grant Sanderson
07a8274cb1
Merge pull request #1821 from 3b1b/video-work
Video work
2022-05-24 15:20:07 -07:00
YishiMichael
49723f54cb
Add necessary imports (#1804)
* Add necessary imports

* Add necessary imports

* Add necessary imports

* Add `from __future__ import annotations`
2022-05-19 22:07:06 +08:00
Grant Sanderson
5d59f945ca FillArrow tweak 2022-04-28 11:59:38 -06:00
Grant Sanderson
4c1210b3ab Add smarter default radius to round_corners 2022-04-25 10:26:29 -07:00
Grant Sanderson
d24b8ff48f
Merge branch 'master' into master 2022-04-20 22:40:11 -07:00
YishiMichael
42444d090e
Add missing import 2022-04-12 21:09:25 +08:00
YishiMichael
9ef9961d0e
Sort imports 2022-04-12 19:19:59 +08:00
Grant Sanderson
217c1d7bb0 Add start angle option to Circle 2022-04-06 13:03:36 -07:00
Grant Sanderson
a9349057ad Merge branch 'master' of github.com:3b1b/manim into video-work 2022-03-22 11:30:25 -07:00
Grant Sanderson
c0b7b55e49 Use stroke_color to init arrow 2022-03-22 10:35:34 -07:00
TonyCrane
4c16bfc2c0
chore: add type hints to manimlib.mobject 2022-02-15 14:37:15 +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
92adcd75d4
add style support to svg 2022-01-26 13:53:53 +08:00
Grant Sanderson
264f7b1172 Add Circle.get_radius 2021-12-07 10:07:25 -08:00
Grant Sanderson
d2182b9112 Make sure set_length returns self 2021-11-18 17:51:56 -08:00
Grant Sanderson
719c81d72b Fix negative path_arc case 2021-10-05 14:17:41 -07:00
Grant Sanderson
b4132e3d5e Bug fix for 0 arrow length case 2021-10-03 10:26:27 -07:00
Grant Sanderson
b24ba19dec Add kwargs to set_length 2021-08-26 11:43:19 -07:00
Grant Sanderson
8647a6429d Reimplement arrow to be stroke, not fill (which will break some past scenes) 2021-08-21 10:35:29 -07:00
Grant Sanderson
b667db2d31 Simplify Square 2021-08-19 08:34:53 -07:00
TonyCrane
f45d81be11 some improvement to tip
rename tip_look to tip_style
set the default of tip_style to 0
2021-06-14 16:13:53 +08:00
widcardw
e885ec6ecd
Fix the color of tip 2021-06-13 21:07:25 +08:00
widcardw
e727faaccb
Add a custom style to ArrowTip. 2021-04-13 17:40:48 +08:00
JWro
63b497c352
Fix init of Elbow super class 2021-02-26 10:46:19 +01:00
Grant Sanderson
479aac1988 Add Line.get_projection method 2021-02-07 17:30:49 -08:00
Abhijith Muthyala
e677f4027a Fix Vector orientation in 3d 2021-02-06 21:28:53 +05:30
Grant Sanderson
7b67f4556b Reorganize Mobject methods and remove ones that are not longer needed 2021-01-14 14:15:58 -10:00
Grant Sanderson
b40a3b5710 Buf fix with Arrow 2021-01-13 09:28:52 -10:00
Grant Sanderson
9314dfd933 Reframe Mobject, VMobject and SurfaceMobject with a data map 2021-01-11 10:57:23 -10:00
Grant Sanderson
b3335c65fb Partial progress 2021-01-10 18:51:47 -08:00
Grant Sanderson
8644d71820 Improve defaults for Lines/Arrows pointing between two mobjects 2021-01-04 17:25:05 -08:00
Grant Sanderson
2461248ef6 Allow Line to take in 2d arrays as arguments 2020-12-08 09:27:20 -08:00
Grant Sanderson
d702396d87 Rename what was an overloaded term 'width' on Arrow to thickness 2020-12-04 08:20:59 -08:00
Grant Sanderson
2708ecfd47 Fix Arrow.get_start 2020-08-20 17:13:24 -07:00
Grant Sanderson
fd17e42c23 Add about_point arg to Line.set_angle 2020-08-16 09:45:34 -07:00
Grant Sanderson
93f7671732 Fixes to Arrow 2020-07-22 18:17:08 -07:00
Grant Sanderson
9a44794dc9 Removes default color for polygon 2020-06-29 22:53:44 -07:00
Grant Sanderson
f11cb5a498 Small cleanups to arrow 2020-06-29 11:04:23 -07:00
Grant Sanderson
0b58572f41 Removes magic number 2020-06-28 12:15:55 -07:00
Grant Sanderson
1cab58ac49 Change how arrow is implemented to be all fill no stroke 2020-06-28 10:05:49 -07:00
Grant Sanderson
09df42a755 Acutually uses Arrow.preserve_tip_size_when_scaling 2020-06-22 15:22:05 -07:00
Grant Sanderson
48801f2892 Don't give arrow tip stroke width by default 2020-06-17 17:13:07 -07:00
Grant Sanderson
00ad9d7f95 Cleanup to square and rectangle init 2020-06-14 17:42:25 -07:00
Grant Sanderson
81cedfbfda Cleanup to the __init__ functions on a few geometry objects 2020-06-13 15:21:19 -07:00