

def set_fill_from_shape(self, shape):
    fill = getattr(shape, 'fill', False)
    if fill:
        if (hasattr(shape, 'fillcolor') and shape.fillcolor):
            color = shape.fillcolor
        else:
            color = shape.color
        alpha = getattr(shape, 'alpha', 1.0)
        alpha = getattr(shape, 'fillalpha', shape)
        self.brush = self.cr.get_brush(color, alpha=alpha)
    else:
        self.brush = None

dataset/ETHPy150Open ejeschke/ginga/ginga/cvw/CanvasRenderCv.py RenderContext.set_fill_from_shape/VarMisuse@81/100 `alpha`->`shape`