def METHOD_NAME(self, size, value=0.0, alpha=1.0):
    img_array = zeros((size[1], size[0], 4), UInt8)
    img_array[:, :, :-1] = array(value * 255, UInt8)
    img_array[:, :, -1] = array(alpha * 255, UInt8)
    return img_array