2007-08-11 21:59:48 +02:00
|
|
|
function render_frame(f, t)
|
|
|
|
local surf = f.create_cairo_surface()
|
2007-08-13 16:56:02 +02:00
|
|
|
--raster.gaussian_blur(surf, t)--1+(1-math.cos(t*10))*2)
|
|
|
|
--raster.invert(surf)
|
2007-08-15 02:20:11 +02:00
|
|
|
--raster.separable_filter(surf, {-1, 3, -1}, 1)
|
2007-08-15 03:08:31 +02:00
|
|
|
--raster.directional_blur(surf, t, t/10)
|
|
|
|
raster.radial_blur(surf, 200, 200, t/60)
|
2007-08-18 01:56:20 +02:00
|
|
|
raster.pixel_value_map(surf, "0 =R 1 G - =G")
|
2007-08-11 21:59:48 +02:00
|
|
|
f.overlay_cairo_surface(surf, 0, 0)
|
2007-08-18 01:56:20 +02:00
|
|
|
|
|
|
|
surf = cairo.image_surface_create(200, 200, "rgb24")
|
|
|
|
raster.pixel_value_map(surf, "rand =t0 t0 =R t0 =G t0 =B")
|
|
|
|
f.overlay_cairo_surface(surf, 20, 20)
|
2007-08-11 21:59:48 +02:00
|
|
|
end
|