def METHOD_NAME(self, color, linewidth=1, alpha=1.0):
    # if hasattr(self, 'linestyle'):
    #     if self.linestyle == 'dash':
    #         cr.set_dash([ 3.0, 4.0, 6.0, 4.0], 5.0)
    #op = int(alpha * 255)
    color = self.get_color(color, alpha=alpha)
    return Pen(color=color, linewidth=linewidth, alpha=alpha)