import turtle

t = turtle.Turtle()
t.speed(0)
t.pensize(3)
t.color("blue")

def draw_char(strokes, ox, oy):
    for stroke in strokes:
        if not stroke:
            continue
        t.penup()
        t.goto(stroke[0][0] + ox, stroke[0][1] + oy)
        t.pendown()
        for (x, y) in stroke[1:]:
            t.goto(x + ox, y + oy)
    t.penup()

# ── 「陈」 ──
CHAR_9648_STROKES = [
    [(-51, 90), (-1, 90), (-29, 32), (-7, -17), (-30, 1)],
    [(-54, 91), (-54, -63)],
    [(48, 103), (10, 8), (108, 8)],
    [(-2, 73), (105, 73)],
    [(63, 13), (63, 49), (63, -60), (40, -60)],
    [(24, -7), (6, -45)],
    [(83, -14), (111, -47)],
]

# ── 「卓」 ──
CHAR_5353_STROKES = [
    [(17, 109), (17, 62)],
    [(17, 89), (101, 89)],
    [(-35, 57), (-35, 3)],
    [(-32, 58), (87, 58), (87, 12), (-29, 12)],
    [(-34, 35), (86, 35)],
    [(-66, -28), (111, -28)],
    [(22, 3), (22, -64)],
]

# ── 「尔」 ──
CHAR_5C14_STROKES = [
    [(-5, 107), (-45, 40)],
    [(-21, 75), (97, 75), (97, 38)],
    [(23, 42), (23, -53), (-5, -32)],
    [(-10, 17), (-53, -35)],
    [(67, 10), (105, -40)],
]

CHAR_DATA = [CHAR_9648_STROKES, CHAR_5353_STROKES, CHAR_5C14_STROKES]

char_gap = 240  
name_start = -((len(CHAR_DATA) - 1) * char_gap) // 2
name_y = -20

for i, strokes in enumerate(CHAR_DATA):
    draw_char(strokes, name_start + i * char_gap, name_y)

t.hideturtle()
turtle.done()
