<data.COLORVALUES>

Parameterized color values
Module
MEI
Used by
These other Data Types reference data.COLORVALUES
data.COLORA value in one of the following forms is expected: 1) hexadecimal RRGGBB, 2) hexadecimal AARRGGBB, 3) CSS RGB, 4) CSS RGBA, 5) HSL, 6) HSLA, or 7) HTML 4.01 color name.
Declaration
<macroSpec ident="data.COLORVALUES" module="MEI" type="dt">
<desc>Parameterized color values</desc>
<content>
<rng:choice>
<!-- hex values -->
<rng:data type="token">
<rng:param name="pattern">#[0-9A-Fa-f]{6,6}</rng:param>
</rng:data>
<!-- AARRGGBB values -->
<rng:data type="token">
<rng:param name="pattern">#[0-9A-Fa-f]{8,8}</rng:param>
</rng:data>
<!-- RGB values -->
<rng:data type="token">
<rng:param name="pattern">
rgb\((\s*(([01]?[0-9]?[0-9])|2[0-4][0-9]|25[0-5])\s*,\s*){2}
([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\s*\)
</rng:param>
</rng:data>
<!-- RGBA values -->
<rng:data type="token">
<rng:param name="pattern">
rgba\(\s*(([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\s*,\s*){3}(
0(\.\d+)?|1(\.0+)?)\s*\)|rgba\(\s*(((\d{1,2})?%|100%)\s*,\s*
){2}(\d{1,2}%|100%)\s*,\s*(0(\.\d+)?|1(\.0+)?)\s*\)
</rng:param>
</rng:data>
<!-- HSL values -->
<rng:data type="token">
<rng:param name="pattern">
hsl\(\s*((\d{1,2})|[12]\d{2}|3[0-5]\d|360)\s*,\s*(\d{1,2}%|1
00%)\s*,\s*(\d{1,2}%|100%)\s*\)
</rng:param>
</rng:data>
<!-- HSLA values -->
<rng:data type="token">
<rng:param name="pattern">
hsla\(\s*(\d{1,2}|[12]\d{2}|3[0-5]\d|360)\s*,\s*(\d{1,2}%|10
0%)\s*,\s*(\d{1,2}%|100%)\s*,\s*(0(\.\d+)?|1(\.0+)?)\s*\)
</rng:param>
</rng:data>
</rng:choice>
</content>
</macroSpec>