1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Added names colours and refactored parseColorString()

This commit is contained in:
Craig Robbins 2014-10-29 16:40:55 +10:00 committed by kwolekr
parent 1cb6ea6346
commit 813c088c1c
3 changed files with 274 additions and 62 deletions

View 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