def drawBall(canvas_size, ball_diameter, fill_color, alpha):
    canvas = Image.new("RGBA", canvas_size, color=(255,)*4)
    draw = ImageDraw.Draw(canvas)
    centering_offset = int(max(canvas_size)/2. - ball_diameter/2)
    position = (centering_offset,centering_offset,centering_offset+ball_diameter,centering_offset+ball_diameter)
    draw.ellipse(position,fill=fill_color)
    blending_canvas = Image.new("RGBA", canvas_size,color=(255,)*4)
    border_canvas = Image.new("RGBA", canvas_size,color=(255,)*4)
    drawCircleBorder(border_canvas, position, 2)
    return Image.composite(Image.blend(blending_canvas,canvas,alpha), border_canvas, border_canvas)
Setup Exchange instance
dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/pyproct/tools/plotTools.py/drawBall--crossover with--dataset/ETHPy150Open ioflo/ioflo/ioflo/aio/proto/exchanging.py/Exchange.__init__