import math cx, cy = 250, 250 R_in = 52 R_out = 188 A_left_in = -10 A_left_out = -16 A_right_in = 14 A_right_out = 34 color = "#ffffff" def get_pt(r, angle_deg): rad = math.radians(angle_deg) return cx + r * math.sin(rad), cy - r * math.cos(rad) il_x, il_y = get_pt(R_in, A_left_in) ol_x, ol_y = get_pt(R_out, A_left_out) or_x, or_y = get_pt(R_out, A_right_out) ir_x, ir_y = get_pt(R_in, A_right_in) cpl_x, cpl_y = get_pt(120, -50) cpr_x, cpr_y = get_pt(120, -5) svg = f''' ''' for i in range(6): svg += f''' ''' svg += ''' ''' with open("logo.svg", "w") as f: f.write(svg)