Código (Questão 1)
Código (Questão 1)
class Questão1(Scene):
def construct(self):
self.camera.background_color = WHITE
# REFERENCIAR INFORMAÇOES
#.1 CONSTRUIR FIGURA
r1 = 2*(2**0.5)
a = [-4, -r1, 0]
b = [-4, r1, 0]
c = [4, r1, 0]
d = [4, -r1, 0]
#.1.1 RECTANGLE
rectangle = Polygon(a, b, c, d)
rectangle.set_stroke(width = 2, color = BLACK)
#.1.2. ARCOS
center_arc1 = [-4, 0, 0]
#.1.3 REFERENCIAS
lado = DoubleArrow(start = [-4.2, -(r1+0.5), 0], end = [4.2, -(r1+0.5), 0], tip_length = 0.2, tip_shape_start = StealthTip, tip_shape_end = StealthTip)
lado.set_stroke(width = 2, color = BLACK)
#.1.4 QUESTÃO
#.1.5 INFORMAÇAO
inf = Tex(r'A figura contém um semicirculo e um quarto de círculo', font_size = 25, tex_template=TexFontTemplates.comfortaa).next_to(rectangle, UP)
inf.set_color(BLACK)
# RENDER
self.wait(2)
return super().construct()