From 01ae43c48009f816f4649fae2f7f6997452aa6cf Mon Sep 17 00:00:00 2001 From: Samuel Sieb Date: Sat, 2 Apr 2016 23:35:42 -0700 Subject: Add an option to colorize to respect the destination alpha Also, rework the colorizing code to be more efficient. --- doc/lua_api.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index a01e72889..4a4e345a9 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -357,8 +357,13 @@ The mask is applied using binary AND. #### `[colorize::` Colorize the textures with the given color. `` is specified as a `ColorString`. -`` is an int ranging from 0 to 255, and specifies how much of the -color to apply. If ommitted, the alpha will be used. +`` 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 ``. If +omitted, the alpha of `` will be used as the ratio. If it is +the word "`alpha`", then the alpha of the color will be multiplied with +the alpha of the texture with the RGB of the color replacing the RGB of +the texture. Sounds ------ -- cgit v1.2.3