From 7fa5318620531ba60c723c29a600b1b0d3ab85c4 Mon Sep 17 00:00:00 2001 From: Niels Martin Hansen Date: Thu, 23 Aug 2007 23:10:15 +0000 Subject: [PATCH] More interesting effect for demonstration purposes. Originally committed to SVN as r1532. --- OverLua/docs/test4.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/OverLua/docs/test4.lua b/OverLua/docs/test4.lua index 8599519e1..57e507671 100644 --- a/OverLua/docs/test4.lua +++ b/OverLua/docs/test4.lua @@ -54,9 +54,10 @@ function render_frame(f, t) -- Then use the blurred video frame as fill source c.set_source(fspattern) c.fill_preserve() - -- And create a very dark and rather transparent colour - -- Filling this on top of the first fill will create a darkening/reddening effect - c.set_source_rgba(0.2, 0, 0, 0.3) + -- And create a very dark colour + -- Adding this on top of the first fill will create a reddening effect + c.set_source_rgba(0.1, 0, 0, 1) + c.set_operator("add") c.fill() -- Finally draw the surface onto the video