lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,
I am trying to use cairo with luagnome in Debian/squeeze with this script:

require "gtk"
require "cairo"

cr = cairo.image_surface_create(cairo.FORMAT_RGB24, 100, 100)
cr = cairo.ps_surface_create('o2.ps', 100, 100)

It produce the error:
$ lua 02_cairo_start.lua
lua: 02_cairo_start.lua:5: [LuaGnome] not found: cairo.ps_surface_create
stack traceback:
        [C]: ?
        02_cairo_start.lua:5: in main chunk
        [C]: ?

Is there cairo.ps_surface_create function (maybee with some other name)?

I would like to create some aplication with luagnome that can draw on
screen (I can do this) and to save same drawong as PS file (how do I do this?).

Thanks
Martin