Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 440 Bytes
#!../luaimg.linux.x86_64 -F
img = open("../examples/lena_std.png"):scale(vec(256, 256), "BOX")
tab = {}
for i=1,100 do
tab[i] = img:quantise("FLOYD_STEINBERG", vec(4,8,8))
img = (img + (img - img:convolveSep(gaussian(31), false, false))):clamp(0, 1)
img = img:scale(vec(258, 258), "LANCZOS3"):rotate(0.4):cropCentre(vec(256,256))
end
for i=101,200 do
tab[i] = tab[200 - i + 1]
end
gif_save("anisharp.gif", 0, tab, 0.04)