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)
|
2007-08-18 16:18:13 +02:00
|
|
|
--raster.radial_blur(surf, 200, 200, t/60)
|
|
|
|
raster.pixel_value_map(surf, "G rand 0.1 * + =G G 1 - 1 G ifgtz =G")
|
|
|
|
raster.pixel_coord_map(surf, "X .5 rand - + =X Y .5 rand - + =Y")
|
2007-08-11 21:59:48 +02:00
|
|
|
f.overlay_cairo_surface(surf, 0, 0)
|
2007-08-18 01:56:20 +02:00
|
|
|
|
2007-08-18 16:18:13 +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
|