From 9288bffcfe9b6fef5ef76e0e11041444551b3b1f Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 19 May 2018 11:01:55 +0200 Subject: fix paths --- test-mogrify.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test-mogrify.py') diff --git a/test-mogrify.py b/test-mogrify.py index 68f279d..d01f530 100644 --- a/test-mogrify.py +++ b/test-mogrify.py @@ -205,10 +205,11 @@ if __name__ == '__main__': if data_opt.sequence and A_dir is not None: A_img = Image.open(sequence_path).convert('RGB') A_im = np.asarray(A_img) - t = lerp(math.sin(i / data_opt.transition_period * math.pi * 2 ) / 2 + 1, data_opt.transition_min, 1.0) - frac_a = data_opt.recursive_frac * (1 - t) - frac_b = data_opt.sequence_frac * (1 - t) + t = lerp(math.sin(i / data_opt.transition_period * math.pi * 2.0 ) / 2.0 + 1.0, data_opt.transition_min, 1.0) + frac_a = data_opt.recursive_frac * (1.0 - t) + frac_b = data_opt.sequence_frac * (1.0 - t) frac_c = 1.0 - frac_a - frac_b + print("{}: {}".format(i, t)) array_a = np.multiply(last_im.astype('float64'), frac_a) array_b = np.multiply(A_im.astype('float64'), frac_b) array_c = np.multiply(im.astype('float64'), frac_c) -- cgit v1.2.3-70-g09d2