summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2014-10-29 16:40:55 +1000
committerkwolekr <kwolekr@minetest.net>2014-10-29 03:10:59 -0400
commit813c088c1c66df45731c9015248b22d55e694c76 (patch)
tree1ed373ada184df186109fcadf909065a39b23cec /doc
parent1cb6ea6346f568cd068380c5af52f7be269e3490 (diff)
downloadminetest-813c088c1c66df45731c9015248b22d55e694c76.tar.gz
minetest-813c088c1c66df45731c9015248b22d55e694c76.tar.bz2
minetest-813c088c1c66df45731c9015248b22d55e694c76.zip
Added names colours and refactored parseColorString()
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index ff2143cc8..698efbe8a 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1265,6 +1265,12 @@ ColorString
#RRGGBBAA
^ defines a color in hexadecimal format and alpha channel
+Named colors are also supported and are equivalent to "CSS Color Module Level 4"
+(http://dev.w3.org/csswg/css-color/#named-colors). To specify the value of the
+alpha channel, append #AA to the end of the color name (e.g. colorname#08). For
+named colors the hexadecimal string representing the alpha value must (always)
+be two hexadecimal digits.
+
Vector helpers
---------------
vector.new([x[, y, z]]) -> vector