Skip to content

Commit db481e7

Browse files
TriBlade9Zeno-
TriBlade9
authored andcommittedJan 20, 2015
Added ratio argument to colorize, removed the weird alpha-based ratio.
1 parent 60d7451 commit db481e7

File tree

2 files changed

+137
-98
lines changed

2 files changed

+137
-98
lines changed
 

Diff for: ‎doc/lua_api.txt

+3-2
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,11 @@ Apply a mask to the base image.
337337

338338
The mask is applied using binary AND.
339339

340-
#### `[colorize:<color>`
340+
#### `[colorize:<color>:<ratio>`
341341
Colorize the textures with the given color.
342342
`<color>` is specified as a `ColorString`.
343+
`<ratio>` is an int ranging from 0 to 255, and specifies how much of the
344+
color to apply. If ommitted, the alpha will be used.
343345

344346
Sounds
345347
------
@@ -3259,4 +3261,3 @@ Definition tables
32593261
playername = "singleplayer"
32603262
-- ^ Playername is optional, if specified spawns particle only on the player's client
32613263
}
3262-

0 commit comments

Comments
 (0)
Please sign in to comment.