def METHOD_NAME(element):
    x1 = float(element.get("x1"))
    y1 = float(element.get("y1"))
    x2 = float(element.get("x2"))
    y2 = float(element.get("y2"))
    fill = Color(get_style(element, "fill"))
    stroke_weight = get_style(element, "stroke-width")
    stroke = Color(get_style(element, "stroke"))
    stroke_cap = get_style(element, "stroke-cap")
    return PShape(
        vertices=[(x1, y1), (x2, y2)],
        fill_color=fill,
        stroke_weight=stroke_weight,
        stroke_color=stroke,
        stroke_cap=stroke_cap,
        stroke_join=default_values["stroke-join"],
    )