diff options
author | paramat <paramat@users.noreply.github.com> | 2018-03-18 05:34:02 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2018-03-20 03:41:31 +0000 |
commit | 68c6494af08c5a9b5b1f9169753d9ba8c106db23 (patch) | |
tree | 06a91802f67c82ea4bad197bb1af58f88beed778 /doc | |
parent | 95dceb5a395a4acc5dc344e440c2b145a1cb7551 (diff) | |
download | minetest-68c6494af08c5a9b5b1f9169753d9ba8c106db23.tar.gz minetest-68c6494af08c5a9b5b1f9169753d9ba8c106db23.tar.bz2 minetest-68c6494af08c5a9b5b1f9169753d9ba8c106db23.zip |
Lua_api.txt: Fix hardware colouring documentation
More 'draw type' -> 'paramtype2' changes, missing from a previous commit.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua_api.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 44cd07545..b045f6402 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -588,7 +588,7 @@ appropriate `paramtype2`: * `paramtype2 = "colorwallmounted"` for nodes which use the first five bits (most significant) of `param2` for palette indexing. The remaining three bits are describing rotation, as in `wallmounted` - drawtype. Division by 8 yields the palette index (without stretching the + paramtype2. Division by 8 yields the palette index (without stretching the palette). These nodes can have 32 different colors, and the palette should contain 32 pixels. Examples: @@ -598,7 +598,7 @@ appropriate `paramtype2`: pixel will be picked from the palette. * `paramtype2 = "colorfacedir"` for nodes which use the first three bits of `param2` for palette indexing. The remaining - five bits are describing rotation, as in `facedir` drawtype. + five bits are describing rotation, as in `facedir` paramtype2. Division by 32 yields the palette index (without stretching the palette). These nodes can have 8 different colors, and the palette should contain 8 pixels. @@ -609,7 +609,7 @@ appropriate `paramtype2`: second (= 1 + 1) pixel will be picked from the palette. To colorize a node on the map, set its `param2` value (according -to the node's draw type). +to the node's paramtype2). ### Conversion between nodes in the inventory and the on the map Static coloring is the same for both cases, there is no need |