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 ---
If you have any difficulty in understanding this, please read Programming in Lua.
[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.
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"