From 1475c1b1c8bb1a2a2812d485d3590e1f817f7c7b Mon Sep 17 00:00:00 2001 From: Thomas--S Date: Fri, 12 Aug 2016 17:56:31 +0200 Subject: Add an [invert: texture modifier Inverts the given channels of the base image. Mode may contain the characters "r", "g", "b", "a". Only the channels that are mentioned in the mode string will be inverted. --- doc/lua_api.txt | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc') diff --git a/doc/lua_api.txt b/doc/lua_api.txt index aa4f129f0..41e7c00eb 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -318,6 +318,15 @@ Example: default_sandstone.png^[opacity:127 +#### `[invert:` +Inverts the given channels of the base image. +Mode may contain the characters "r", "g", "b", "a". +Only the channels that are mentioned in the mode string will be inverted. + +Example: + + default_apple.png^[invert:rgb + #### `[brighten` Brightens the texture. -- cgit v1.2.3