Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions | Variables
SkParseColor.cpp File Reference
#include "include/utils/SkParse.h"
#include "include/core/SkColor.h"
#include "include/core/SkTypes.h"
#include <algorithm>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <iterator>

Go to the source code of this file.

Classes

struct  ColorRec
 

Functions

static unsigned nib2byte (unsigned n)
 

Variables

static constexpr const char * gColorNames []
 
static constexpr struct ColorRec gColors []
 

Function Documentation

◆ nib2byte()

static unsigned nib2byte ( unsigned  n)
inlinestatic

Definition at line 343 of file SkParseColor.cpp.

344{
345 SkASSERT((n & ~0xF) == 0);
346 return (n << 4) | n;
347}
#define SkASSERT(cond)
Definition SkAssert.h:116

Variable Documentation

◆ gColorNames

constexpr const char* gColorNames[]
staticconstexpr

Definition at line 18 of file SkParseColor.cpp.

18 {
19 "aliceblue",
20 "antiquewhite",
21 "aqua",
22 "aquamarine",
23 "azure",
24 "beige",
25 "bisque",
26 "black",
27 "blanchedalmond",
28 "blue",
29 "blueviolet",
30 "brown",
31 "burlywood",
32 "cadetblue",
33 "chartreuse",
34 "chocolate",
35 "coral",
36 "cornflowerblue",
37 "cornsilk",
38 "crimson",
39 "cyan",
40 "darkblue",
41 "darkcyan",
42 "darkgoldenrod",
43 "darkgray",
44 "darkgreen",
45 "darkkhaki",
46 "darkmagenta",
47 "darkolivegreen",
48 "darkorange",
49 "darkorchid",
50 "darkred",
51 "darksalmon",
52 "darkseagreen",
53 "darkslateblue",
54 "darkslategray",
55 "darkturquoise",
56 "darkviolet",
57 "deeppink",
58 "deepskyblue",
59 "dimgray",
60 "dodgerblue",
61 "firebrick",
62 "floralwhite",
63 "forestgreen",
64 "fuchsia",
65 "gainsboro",
66 "ghostwhite",
67 "gold",
68 "goldenrod",
69 "gray",
70 "green",
71 "greenyellow",
72 "honeydew",
73 "hotpink",
74 "indianred",
75 "indigo",
76 "ivory",
77 "khaki",
78 "lavender",
79 "lavenderblush",
80 "lawngreen",
81 "lemonchiffon",
82 "lightblue",
83 "lightcoral",
84 "lightcyan",
85 "lightgoldenrodyellow",
86 "lightgreen",
87 "lightgrey",
88 "lightpink",
89 "lightsalmon",
90 "lightseagreen",
91 "lightskyblue",
92 "lightslategray",
93 "lightsteelblue",
94 "lightyellow",
95 "lime",
96 "limegreen",
97 "linen",
98 "magenta",
99 "maroon",
100 "mediumaquamarine",
101 "mediumblue",
102 "mediumorchid",
103 "mediumpurple",
104 "mediumseagreen",
105 "mediumslateblue",
106 "mediumspringgreen",
107 "mediumturquoise",
108 "mediumvioletred",
109 "midnightblue",
110 "mintcream",
111 "mistyrose",
112 "moccasin",
113 "navajowhite",
114 "navy",
115 "oldlace",
116 "olive",
117 "olivedrab",
118 "orange",
119 "orangered",
120 "orchid",
121 "palegoldenrod",
122 "palegreen",
123 "paleturquoise",
124 "palevioletred",
125 "papayawhip",
126 "peachpuff",
127 "peru",
128 "pink",
129 "plum",
130 "powderblue",
131 "purple",
132 "red",
133 "rosybrown",
134 "royalblue",
135 "saddlebrown",
136 "salmon",
137 "sandybrown",
138 "seagreen",
139 "seashell",
140 "sienna",
141 "silver",
142 "skyblue",
143 "slateblue",
144 "slategray",
145 "snow",
146 "springgreen",
147 "steelblue",
148 "tan",
149 "teal",
150 "thistle",
151 "tomato",
152 "turquoise",
153 "violet",
154 "wheat",
155 "white",
156 "whitesmoke",
157 "yellow",
158 "yellowgreen",
159};

◆ gColors

constexpr struct ColorRec gColors[]
static