FullMoon

This plugin is an attempt to make object plugin coding for Moray easier, by allowing authors to code them using a script language called Lua. Lua is a procedural language with some OOP, meaning it's very easy to learn because it's similar to C and Pascal and it allows a very powerful design of the object interface.

It's very hard to code object plugins in C, there are many details to deal with to get a functional plugin. And you have to have access to a C/C++ compiler to compile your source code.

If you ever coded or tried to code a plugin just take a look at the example objects provided with FullMoon and you'll know what I mean.

Lua means "moon" in portuguese, that's why I called this plugin FullMoon. And yes, I know it's icon is not one of a full moon, but it's pretty.

1.1b (beta)94.213 bytesfullmoon-11b.zip
0.3b (beta)166.191 bytesbitmap-0.3a.zip
3.226.575 bytesluac-32.zip
1.0b (beta)25.458 bytesluaz-10b.zip

Instructions for installing and coding your own objects are included in the package. To install new objects, just unzip its content to Moray's Plugin directory (where fullmoon.dll resides) and you're done. If the file is a *.luaz, just copy the file to that directory.

bitmap.exe is used to create Lua code from a bitmapped image that can be insert in your code. All Moray objects have a 16x16x16 image, so you must download it to convert your images.

luac.exe is used to compile Lua code. It's a command line compiler, just type "luac -O -o bytecode.lua source.lua" and it will convert your source code to a byte-code format. Use it if you want to prevent others from seeing your code.

Another way to hide your source code is using luaz.exe. It compresses your source code making it unreadable while making it smaller. Just type "luaz filename.lua" and it will produce filename.luaz, which can be directly read by FullMoon version 1.1b and up.

If you want to hide your source code with luac.exe or luaz.exe but does not want to hide your copyright notice, add a help or about button to your object's dialog that pops a messageBox (see function.lua in the distribution).

Lua objects:

The well known rounded cube. Already included in the distribution. A dice. It reuses the rounded cube object to implement the dice's core. Already included in the distribution.
This object allows you to specify a function z=f(x,y) or z=f(d) where d is the distance from (x,y) to the origin. Already included in the distribution. helix.zip (1.252 bytes) by Philippe Gibone
lissajoux.zip (1.139 bytes) by Philippe Gibone wall.zip (1.620 bytes) by Philippe Gibone
club.zip (1.877 bytes) by Arne Kleinophorst window.zip (1.587 bytes) by Arne Kleinophorst


wbmp2gif

The two little programs in this package were written to allow WBMP images be seen in HTML pages like they would be seen in a WAP device's LCD screen.

ShowWBMP is a java applet that will accept a URL as a parameter and load and show the image pointed by the URL.

wbmp2gif is a CGI program written in C that will convert an WBMP image to GIF and return it to the browser.

ShowWBMP is preferred bacause wbmp2gif uses libungif to produce the GIF image and, because of legal problems, these GIFs are uncompressed. For the image showed here, the GIF produced by wbmp2gif is 10.882 bytes long and the original WBMP is only 604 bytes long. Of course ShowWBMP won't work in browsers that do not support Java.

This is a WBMP image coverted to GIF on-the-fly by a CGI program (not really, I can't run CGI programs, but this is the image that the program generates)...
... and this is the same WBMP image shown by a java applet.

Click here to download the source code of the programs. Last version is 1.0. They both are GPL'ed.

If you have sugestions or trouble running them please contact me.


Copyright (C) 2000 André de Leiradella. Last modified on 27-sep-2000. 1