mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Added ratio argument to colorize, removed the weird alpha-based ratio.
This commit is contained in:
parent
60d745126f
commit
db481e7232
2 changed files with 137 additions and 98 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue