[025]ArcBetweenPoints
def arc_between_test1(self): values = [PI/8, PI/4, PI/2, PI, 3*PI/2] strs = ["PI/8", "PI/4", "PI/2", "PI", "3*PI/2"] def get_arc_text(str, angle_value): arc = ArcBetweenPoints(LEFT, RIGHT, angle=angle_value) num = Text(str, size=0.35, stroke_width=0).next_to(arc,UP) return VGroup(arc,num) arcs = VGroup(*[get_arc_text(str,angle_value) for str, angle_value in zip(strs,values)]) arcs.arrange(RIGHT)..
[023]Rectangle, Square, RoundedRectangle
Rectangle rect = Rectangle() Square square = Square() RoundedRectangle rect = RoundedRectangle() corner_radius def round_test(self): values = [0.1, 0.5,1,1.5,2] def get_rect(val): rect = RoundedRectangle(corner_radius=val).scale(0.5) text = Text(str(val), size=0.3, stroke_width=0).next_to(rect, UP) return VGroup(rect,text) rects = VGroup(*[get_rect(v) for v in values]) rects.arrange(RIGHT) self...