[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua cairo
- From: Philippe Lhoste <PhiLho@...>
- Date: Tue, 04 Dec 2007 10:21:07 +0100
On 15/11/2007 02:03, Hakki Dogusan wrote:
You may get it here:
http://www.dogusan.net/dogusanh/download/luacairo-0.7.zip (~3.5Mb)
I am testing it right now, starting by playing the demos and tests, of
course.
They work fine, I think I will have some fun soon...
BUT (there is often a but, no?) two demos fail after spitting out a
number of files:
C:\PrgCmdLine\luacairo
> lua5.1.exe draw.c.lua
lua5.1.exe: draw.c.lua:297: bad argument #2 to 'font_extents'
(cairo.FontExtents.mt expected, got table)
stack traceback:
[C]: in function 'font_extents'
draw.c.lua:297: in function 'draw_textextents'
draw.c.lua:402: in function 'draw_diagram'
draw.c.lua:440: in function 'diagram'
draw.c.lua:466: in function 'main'
draw.c.lua:472: in main chunk
[C]: ?
C:\PrgCmdLine\luacairo
> lua5.1.exe diagram.c.lua
lua5.1.exe: diagram.c.lua:420: bad argument #1 to 'matrix_init'
(cairo.Matrix.mt expected, got table)
stack traceback:
[C]: in function 'matrix_init'
diagram.c.lua:420: in function 'diagram'
diagram.c.lua:478: in function 'main'
diagram.c.lua:504: in main chunk
[C]: ?
Running on WinXP Pro SP2.
Good work, anyway!
PS.: don't search specifically, I did it and didn't find a clear answer.
But if you know a way to make animated Gifs with Cairo, I would be glad.
Otherwise, I suppose I will generate a bunch of files and some tool to
assemble them in Gif format.
Too bad MNG never took off.
--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --