lua-users home
lua-l archive

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


Hello,

I've seen that there is an icon in the main distribution. But only
in a system-specific format for windows. Why only for windows?!
I thought Lua was meant to be portable?

It would be nice if you could also include it in a different format.

Here it is in the XPM format:
http://git.savannah.gnu.org/cgit/akfavatar.git/plain/lua.xpm

The XPM format is well suited, because it uses only ASCII characters.
So it can simply be included in a Lua script as string with long brackets.
XPM files are even vaild C code, so they can simply be included in C with
#include "lua.xpm"
Try that with any other image format!
(Okay, XBM also works that way.)

-- 
AKFoerster