mirror of
https://github.com/minetest/minetest_docs.git
synced 2024-10-04 00:43:07 +02:00
Update docs regarding [transform
This commit is contained in:
parent
7a3b64928a
commit
a56693c724
@ -254,9 +254,9 @@ Multiplies the alpha value of each pixel of the base texture with `ratio/255` an
|
|||||||
|
|
||||||
The channels corresponding to the occurring characters (red, green, blue and alpha) will be inverted (set to `255 - value`).
|
The channels corresponding to the occurring characters (red, green, blue and alpha) will be inverted (set to `255 - value`).
|
||||||
|
|
||||||
===== `+<base>^[transform<t>+`
|
===== `+<base>^[transform<transforms>+`
|
||||||
|
|
||||||
`t` is either a number or a name identifying a transformation from the following table:
|
`<transforms>` is the concatenation of either numbers or names identifying transformations from the following table:
|
||||||
|
|
||||||
[cols="1,1,1"]
|
[cols="1,1,1"]
|
||||||
|===
|
|===
|
||||||
@ -272,6 +272,8 @@ The channels corresponding to the occurring characters (red, green, blue and alp
|
|||||||
| 7 | FYR90 | Flip Y, then rotate by 90° counterclockwise
|
| 7 | FYR90 | Flip Y, then rotate by 90° counterclockwise
|
||||||
|===
|
|===
|
||||||
|
|
||||||
|
Transformation names are case insensitive.
|
||||||
|
|
||||||
===== `+<base>^[verticalframe:<framecount>:<frame>+`
|
===== `+<base>^[verticalframe:<framecount>:<frame>+`
|
||||||
|
|
||||||
* `framecount`: Animation frame count
|
* `framecount`: Animation frame count
|
||||||
@ -338,9 +340,9 @@ Masking is associative and commutative if all involved textures have the same di
|
|||||||
* `percent` is an integer from `0` to `100`
|
* `percent` is an integer from `0` to `100`
|
||||||
* `texture` is an escaped texture modifier
|
* `texture` is an escaped texture modifier
|
||||||
|
|
||||||
Overlays the lower `percent` part of `texture` on the base texture `x`.
|
Overlays the lower `percent` part of `texture` on the base texture.
|
||||||
|
|
||||||
TIP: Use `blank.png` as base texture `x` if you do not want a background.
|
TIP: Use `blank.png` as base texture if you do not want a background.
|
||||||
|
|
||||||
==== Base Texture Generators
|
==== Base Texture Generators
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user