diff --git a/lua_api.html b/lua_api.html index b234653..2055e9c 100644 --- a/lua_api.html +++ b/lua_api.html @@ -4,7 +4,7 @@ layout: default ---

This is lua_api.txt nicely formated: I did not write this

-This page was last updated 19/March/2016.
See doc/lua_api.txt for the latest version (in plaintext).
Generated using a Python script.
+This page was last updated 09/April/2016.
See doc/lua_api.txt for the latest version (in plaintext).
Generated using a Python script.

Table of Contents

This page was last updated 09/April/2016.
See doc/lua_api.txt for the latest version (in plaintext).
Generated using a Python script.

Programming in Lua

If you have any difficulty in understanding this, please read Programming in Lua.

Startup

@@ -634,8 +634,13 @@ Rotations are counter-clockwise.

[colorize:<color>:<ratio>

Colorize the textures with the given color. <color> is specified as a ColorString. -<ratio> is an int ranging from 0 to 255, and specifies how much of the -color to apply. If ommitted, the alpha will be used.

+<ratio> is an int ranging from 0 to 255 or the word "alpha". If +it is an int, then it specifies how far to interpolate between the +colors where 0 is only the texture color and 255 is only <color>. If +omitted, the alpha of <color> will be used as the ratio. If it is +the word "alpha", then each texture pixel will contain the RGB of +<color> and the alpha of <color> multiplied by the alpha of the +texture pixel.

Sounds

Only Ogg Vorbis files are supported.

For positional playing of sounds, only single-channel (mono) files are @@ -1908,7 +1913,7 @@ or string form, a ColorString (defined above): colorspec = "green"

Spatial Vectors