def round_corner(radius, fill):
 corner = Image.new(u'L', (radius, radius), 0)
 draw = ImageDraw.Draw(corner)
 draw.pieslice((0, 0, (radius * 2), (radius * 2)), 180, 270, fill=fill)
 return corner

def round_corner ( radius , fill ) : corner = Image . new ( u'L' , ( radius , radius ) , 0 ) draw = ImageDraw . Draw ( corner ) draw . pieslice ( ( 0 , 0 , ( radius * 2 ) , ( radius * 2 ) ) , 180 , 270 , fill = fill ) return corner
draw a round corner .