def periodic(img, periodic_noise_filename='periodic_noise'):
    height = img.height
    width = img.width
    output = []
    for i in range(6):
        noise = Image.open('{}_{}.png'.format(periodic_noise_filename, (i + 1))).convert('RGBA')
        noise = random_crop(rotate(noise.resize(((width * 2), (height * 2))), (np.random.random_sample() * 360), 'white'), height, width)
        output.append(Image.blend(img.convert('RGBA'), noise, 0.3))
    return output
def periodic(img, periodic_noise_filename='periodic_noise'):
    height = img.height
    width = img.width
    output = []
    for i in range(6):
        noise = Image.open('{}_{}.png'.format(periodic_noise_filename, (i + 1))).convert('RGBA')
        noise = random_crop(rotate(noise.resize(((width * 2), (height * 2))), (np.random.random_sample() * 360), 'white'), height, width)
        output.append(Image.blend(img.convert('RGBA'), noise, 0.3))
    return output