lua-users home
lua-l archive

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


I have managed to understand pixmap.lua example in lua-gtk-0.8 and now
I want to do some changes to it but I am clueless.

3BI want to draw rectangle in different color and change font to
Courier. I have been reading gtk reference manual for C whole day but
did not find a way to do it (I am new to gtk too).  There I found
description for GdkGC, GdkColormap and GdkColor and I got totally lost
there.

Can somebody show me how to modify pixmap.lua example so that it use
custom color (red=100, green=150, blue=200) for drawing rectangle and
changing font family and size (and color)?

Thanks
Martin