def METHOD_NAME(self, gc, lines, color, width, dash):
    """ Render a collection of lines with a given style """
    with gc:
        gc.set_stroke_color(color)
        gc.set_line_width(width)
        gc.set_line_dash(dash)
        for line in lines:
            gc.begin_path()
            line.shape = (2, 2)
            gc.lines(line)
            gc.stroke_path()