Aegisub/OverLua/docs/test3.lua
Niels Martin Hansen 4ddc7d5820 I can has radial blur! *wheeee*
Originally committed to SVN as r1490.
2007-08-15 01:08:31 +00:00

9 lines
323 B
Lua

function render_frame(f, t)
local surf = f.create_cairo_surface()
--raster.gaussian_blur(surf, t)--1+(1-math.cos(t*10))*2)
--raster.invert(surf)
--raster.separable_filter(surf, {-1, 3, -1}, 1)
--raster.directional_blur(surf, t, t/10)
raster.radial_blur(surf, 200, 200, t/60)
f.overlay_cairo_surface(surf, 0, 0)
end