mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Drawing of earth
This commit is contained in:
parent
60caf2312c
commit
817f480d84
1 changed files with 20 additions and 0 deletions
|
@ -610,6 +610,26 @@ class Car(SVGMobject):
|
||||||
def get_rear_light(self):
|
def get_rear_light(self):
|
||||||
return self[1][8]
|
return self[1][8]
|
||||||
|
|
||||||
|
|
||||||
|
class VectorizedEarth(SVGMobject):
|
||||||
|
CONFIG = {
|
||||||
|
"file_name": "earth",
|
||||||
|
"height": 1.5,
|
||||||
|
"fill_color": BLACK,
|
||||||
|
}
|
||||||
|
|
||||||
|
def __init__(self, **kwargs):
|
||||||
|
SVGMobject.__init__(self, **kwargs)
|
||||||
|
circle = Circle(
|
||||||
|
stroke_width=3,
|
||||||
|
stroke_color=GREEN,
|
||||||
|
fill_opacity=1,
|
||||||
|
fill_color=BLUE_C,
|
||||||
|
)
|
||||||
|
circle.replace(self)
|
||||||
|
self.add_to_back(circle)
|
||||||
|
|
||||||
|
|
||||||
### Cards ###
|
### Cards ###
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue