From 2c8c6977d54af325f6a3c83da8b31173ed149b38 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Sun, 13 May 2007 14:08:10 +0000 Subject: [PATCH] Fix stupid bug in colour interpolation functions Originally committed to SVN as r1179. --- automation/include/utils-auto4.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automation/include/utils-auto4.lua b/automation/include/utils-auto4.lua index a193bfaf7..57eb459b1 100644 --- a/automation/include/utils-auto4.lua +++ b/automation/include/utils-auto4.lua @@ -233,7 +233,7 @@ end -- Return in style override format function interpolate_color(pct, first, last) local r1, g1, b1 = extract_color(first) - local r2, g2, b2 = extract_color(first) + local r2, g2, b2 = extract_color(last) local r, g, b = interpolate(pct, r1, r2), interpolate(pct, g1, g2), interpolate(pct, b1, b2) return ass_color(r, g, b) end @@ -242,6 +242,6 @@ end -- Return in style override format function interpolate_alpha(pct, first, last) local r1, g1, b1, a1 = extract_color(first) - local r2, g2, b2, a2 = extract_color(first) + local r2, g2, b2, a2 = extract_color(last) return ass_alpha(interpolate(pct, a1, a2)) end