(tintcolor)
| 108 | * @returns {Color|undefined} parsed Color, or undefined if no tint |
| 109 | */ |
| 110 | export function parseTintColor(tintcolor) { |
| 111 | if (typeof tintcolor !== "undefined") { |
| 112 | return colorPool.get().parseHex(tintcolor, true); |
| 113 | } |
| 114 | return undefined; |
| 115 | } |
| 116 | |
| 117 | // pre-compiled regex for #ARGB → #RGBA color conversion |
| 118 | // matches #ARGB (5 chars) or #AARRGGBB (9 chars) |
no test coverage detected