summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-05-19 11:05:01 +0200
committerJules Laplace <julescarbon@gmail.com>2018-05-19 11:05:01 +0200
commitb26e56f9b59714db2f51c041c4f2c82aa56c3ffa (patch)
treee3ddde8c556bd89f2a39c0fd6bd8be23a4fff1b5
parent9288bffcfe9b6fef5ef76e0e11041444551b3b1f (diff)
fix lol
-rw-r--r--test-mogrify.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-mogrify.py b/test-mogrify.py
index d01f530..50c011b 100644
--- a/test-mogrify.py
+++ b/test-mogrify.py
@@ -205,7 +205,7 @@ 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.0 ) / 2.0 + 1.0, data_opt.transition_min, 1.0)
+ t = lerp(math.sin(i / data_opt.transition_period * math.pi * 2.0 ) / 2.0 + 0.5, 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