def METHOD_NAME(self, color, line_width, line_dash, path, canvas, *args, **kwargs):
    draw_paint = Paint()
    draw_paint.setAntiAlias(True)
    draw_paint.setStrokeWidth(self.container.scale * line_width)
    draw_paint.setStyle(Paint__Style.STROKE)
    if color is None:
        a, r, g, b = 255, 0, 0, 0
    else:
        a, r, g, b = round(color.a * 255), int(color.r), int(color.g), int(color.b)
    if line_dash is not None:
        draw_paint.setPathEffect(
            DashPathEffect(
                [(self.container.scale * float(d)) for d in line_dash], 0.0
            )
        )
    draw_paint.setARGB(a, r, g, b)
    canvas.drawPath(path, draw_paint)
    path.reset()