diff options
author | TriBlade9 <triblade9@mail.com> | 2015-01-19 14:15:20 +0800 |
---|---|---|
committer | Craig Robbins <kde.psych@gmail.com> | 2015-01-20 22:56:20 +1000 |
commit | db481e72321977f982d47f48be402565acc3443c (patch) | |
tree | 10a2a634af39c8a033dd303c79638bca4dbc0d39 /doc | |
parent | 60d745126f8cdb2463fa36de7e3a50e8226cbc27 (diff) | |
download | minetest-db481e72321977f982d47f48be402565acc3443c.tar.gz minetest-db481e72321977f982d47f48be402565acc3443c.tar.bz2 minetest-db481e72321977f982d47f48be402565acc3443c.zip |
Added ratio argument to colorize, removed the weird alpha-based ratio.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 6359ef6de..586c520fc 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -337,9 +337,11 @@ Apply a mask to the base image. The mask is applied using binary AND. -#### `[colorize:<color>` +#### `[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. Sounds ------ @@ -3259,4 +3261,3 @@ Definition tables playername = "singleplayer" -- ^ Playername is optional, if specified spawns particle only on the player's client } - |