Commit graph

121 commits

Author SHA1 Message Date
Grant Sanderson
ab6a7df4af Use typing_extensions to import Self for python versions <3.11 2023-02-02 10:54:47 -08:00
Grant Sanderson
6a42ef846a Add Self type to geometry.py 2023-01-31 14:12:41 -08:00
Grant Sanderson
8d72340501 Remove some references to triangulation 2023-01-28 12:43:56 -08:00
Grant Sanderson
746b52cda5 Okay, actually fix Arrow 2023-01-26 23:51:05 -08:00
Grant Sanderson
79039bde61 Fix Arrow 2023-01-26 23:42:03 -08:00
Grant Sanderson
1367e31439 Fix bug with polygon start angle = 0 2023-01-19 09:50:41 -08:00
Grant Sanderson
b16f0981f6 No need to set flat stroke defaults in Polygon/Polyline 2023-01-17 11:37:06 -08:00
Grant Sanderson
90ac1fc0bf Rename 'points' -> 'point' 2023-01-15 18:23:41 -08:00
Grant Sanderson
da2b13aee9 Fix triangulation issue for Annulus 2023-01-13 13:22:26 -08:00
Grant Sanderson
1f04ba92fb Fix Polygon.round_corners 2023-01-11 20:47:04 -08:00
Grant Sanderson
ed26fdfab8 Have Polyline default to flat stroke 2023-01-11 20:31:38 -08:00
Grant Sanderson
8c435d6181 Default to flat stroke for polygons 2023-01-11 20:27:17 -08:00
Grant Sanderson
31715ec98a Fix Arrow 2023-01-11 20:09:28 -08:00
Grant Sanderson
a17a57825e Fix Annulus and sector 2023-01-11 20:01:54 -08:00
Grant Sanderson
8a08b62f7c Remove n_points_per_curve reference 2023-01-11 19:52:33 -08:00
Grant Sanderson
6a18a05a3b Fix arrow for new path behavior 2023-01-11 19:40:15 -08:00
Grant Sanderson
55bc8464b9 Update Arc to make sense with new path structure 2023-01-11 14:19:57 -08:00
Grant Sanderson
a2bdf54025 Remove unused parameter 2022-12-26 07:58:30 -07:00
Grant Sanderson
8d05431b7b Add points in reverse order to AngularSector 2022-12-19 14:43:57 -08:00
Grant Sanderson
c330dfddae Add space 2022-12-19 10:38:06 -08:00
Grant Sanderson
d4a29df99c Remove needless data["points"] reference 2022-12-17 19:48:47 -08:00
Grant Sanderson
97f28b34f3 Distinguish Vect3 from Vect3Array types 2022-12-17 13:16:48 -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
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