85 "lightgoldenrodyellow",
307 const auto rec = std::lower_bound(std::begin(
gColorNames),
310 [](
const char*
name,
const char*
key) {
323 return name + strlen(*rec);
351 if (
value[0] ==
'#') {
358 if (len == 3 || len == 4) {
359 unsigned a = len == 4 ?
nib2byte(hex >> 12) : oldAlpha;
360 unsigned r =
nib2byte((hex >> 8) & 0xF);
361 unsigned g =
nib2byte((hex >> 4) & 0xF);
365 }
else if (len == 6 || len == 8) {
367 hex |= oldAlpha << 24;
static const SkColor gColors[]
#define SkColorSetRGB(r, g, b)
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
#define SkColorGetA(color)
static constexpr const char * gColorNames[]
static constexpr struct ColorRec gColors[]
static unsigned nib2byte(unsigned n)
static const char * FindHex(const char str[], uint32_t *value)
static const char * FindNamedColor(const char str[], size_t len, SkColor *color)
static const char * FindColor(const char str[], SkColor *value)