Address issues related to refactoring the_game
[oweals/minetest.git] / doc / lua_api.txt
index ff2143cc841ba07b6fd93075201317bae1e05cae..698efbe8af2d0ad98e7b8485df392ddd55ecc79c 100644 (file)
@@ -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