Fix Laptop

This commit is contained in:
Grant Sanderson 2019-03-16 22:12:12 -07:00
parent fb99ebaeaf
commit d07c086bec

View file

@ -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)