mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Fix Laptop
This commit is contained in:
parent
fb99ebaeaf
commit
d07c086bec
1 changed files with 4 additions and 1 deletions
|
@ -212,12 +212,15 @@ class Laptop(VGroup):
|
|||
"fill_color": BLACK,
|
||||
"fill_opacity": 1,
|
||||
},
|
||||
"fill_opacity": 1,
|
||||
"stroke_width": 0,
|
||||
"body_color": LIGHT_GREY,
|
||||
"shaded_body_color": GREY,
|
||||
"open_angle": np.pi / 4,
|
||||
}
|
||||
|
||||
def generate_points(self):
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
body = Cube(side_length=1)
|
||||
for dim, scale_factor in enumerate(self.body_dimensions):
|
||||
body.stretch(scale_factor, dim=dim)
|
||||
|
|
Loading…
Add table
Reference in a new issue