Home
last modified time | relevance | path

Searched refs:SkColor (Results 1 – 25 of 575) sorted by relevance

12345678910>>...23

/external/skia/include/core/
DSkColor.h37 typedef uint32_t SkColor; typedef
49 static constexpr inline SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkColorSetARGB()
82 static constexpr inline SkColor SK_WARN_UNUSED_RESULT SkColorSetA(SkColor c, U8CPU a) { in SkColorSetA()
99 constexpr SkColor SK_ColorTRANSPARENT = SkColorSetARGB(0x00, 0x00, 0x00, 0x00);
103 constexpr SkColor SK_ColorBLACK = SkColorSetARGB(0xFF, 0x00, 0x00, 0x00);
108 constexpr SkColor SK_ColorDKGRAY = SkColorSetARGB(0xFF, 0x44, 0x44, 0x44);
113 constexpr SkColor SK_ColorGRAY = SkColorSetARGB(0xFF, 0x88, 0x88, 0x88);
118 constexpr SkColor SK_ColorLTGRAY = SkColorSetARGB(0xFF, 0xCC, 0xCC, 0xCC);
122 constexpr SkColor SK_ColorWHITE = SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF);
126 constexpr SkColor SK_ColorRED = SkColorSetARGB(0xFF, 0xFF, 0x00, 0x00);
[all …]
DSkColorFilter.h32 bool asAColorMode(SkColor* color, SkBlendMode* mode) const;
43 SkColor filterColor(SkColor) const;
78 static sk_sp<SkColorFilter> Blend(SkColor c, SkBlendMode mode);
122 static sk_sp<SkColorFilter> Lighting(SkColor mul, SkColor add);
/external/skia/experimental/sktext/editor/
DDefaults.h15 const SkColor DEFAULT_TEXT_FOREGROUND = SK_ColorBLACK;
16 const SkColor DEFAULT_TEXT_BACKGROUND = SK_ColorWHITE;
17 const SkColor DEFAULT_STATUS_FOREGROUND = SK_ColorRED;
18 const SkColor DEFAULT_STATUS_BACKGROUND = SK_ColorLTGRAY;
20 const SkColor DEFAULT_CURSOR_COLOR = SK_ColorGRAY;
21 const SkColor DEFAULT_SELECTION_COLOR = SK_ColorCYAN;
/external/skia/include/utils/
DSkShadowUtils.h49 SkColor ambientColor, SkColor spotColor,
84 static void ComputeTonalColors(SkColor inAmbientColor, SkColor inSpotColor,
85 SkColor* outAmbientColor, SkColor* outSpotColor);
/external/skia/tests/
DGradientTest.cpp49 const SkColor colors[] = { SK_ColorRED, SK_ColorBLUE }; in test_big_grad()
70 const SkColor* fColors;
81 AutoTMalloc<SkColor> colorStorage(fColorCount); in gradCheck()
93 !memcmp(info->fColors, fColors, fColorCount * sizeof(SkColor))); in gradCheck()
191 SkColor colors[] = { SK_ColorBLUE, SK_ColorBLUE }; in TestConstantGradient()
210 static const SkColor gColors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorBLUE }; in TestGradientShaders()
253 static const SkColor gC_00[] = { 0xff000000, 0xff000000 }; in TestGradientOptimization()
254 static const SkColor gC_01[] = { 0xff000000, 0xffffffff }; in TestGradientOptimization()
255 static const SkColor gC_11[] = { 0xffffffff, 0xffffffff }; in TestGradientOptimization()
256 static const SkColor gC_001[] = { 0xff000000, 0xff000000, 0xffffffff }; in TestGradientOptimization()
[all …]
DColorTest.cpp20 SkColor c0 = SkColorSetARGB(a, x, x, x); in DEF_TEST()
23 SkColor c1 = SkUnPreMultiply::PMColorToColor(p0); in DEF_TEST()
49 SkColor colorSrc = r.nextU(); in DEF_TEST()
50 SkColor colorDst = r.nextU(); in DEF_TEST()
67 SkColor colorSrc = r.nextU(); in DEF_TEST()
68 SkColor colorDst = r.nextU(); in DEF_TEST()
DBitmapGetColorTest.cpp24 SkColor fInColor; in DEF_TEST()
25 SkColor fOutColor; in DEF_TEST()
40 const SkColor initColor = 0xFF0000FF; in DEF_TEST()
53 SkColor c = bm.getColor(1, 1); in DEF_TEST()
/external/skia/docs/examples/
Dradial_gradient_test.cpp8 const SkColor preColor = 0xFFFF0000; // clamp color before start in draw()
9 const SkColor postColor = 0xFF0000FF; // clamp color after end in draw()
10 const SkColor color0 = 0xFF000000; in draw()
11 const SkColor color1 = 0xFF00FF00; in draw()
13 SkColor cs[] = {preColor, color0, color1, postColor}; in draw()
Dpathops.cpp5 void makePaint(SkPaint * paint, SkColor color) { in makePaint()
11 SkColor blend(SkColor one, SkColor two) { in blend()
18 return *(SkColor*)pixels; in blend()
29 SkColor blendColor = blend(oneColor, twoColor); in draw()
DSKIA_LOGO_svg.cpp7 const SkColor background = SK_ColorWHITE; // SK_ColorTRANSPARENT; in draw()
8 const SkColor rgb[] = {0xFFE94037, 0xFF70BF4F, 0xFF465BA6}; in draw()
9 const SkColor lettering = 0xFF292929; in draw()
10 const SkColor lineColors[2] = {0x30565656, 0xFF565656}; in draw()
/external/skia/tools/viewer/
DShadowColorSlide.cpp98 const SkColor kColors[30] = { in draw()
168 SkColor ambientColor = SkColorSetARGB(ambientAlpha*255, 0, 0, 0); in drawShadowedPath()
174 SkColor color = paint.getColor(); in drawShadowedPath()
183 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath()
191 SkColor spotGreyscale = SkColorSetARGB(spotAlpha * 255, 0, 0, 0); in drawShadowedPath()
196 SkColor color = paint.getColor(); in drawShadowedPath()
197 SkColor baseAmbient = SkColorSetARGB(ambientAlpha*SkColorGetA(color), in drawShadowedPath()
200 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath()
203 SkColor tonalAmbient, tonalSpot; in drawShadowedPath()
DStatsLayer.h22 Timer addTimer(const char* label, SkColor color, SkColor labelColor = 0);
36 SkColor fColor;
37 SkColor fLabelColor;
/external/skia/tools/
DToolUtils.h61 SkColor color_to_565(SkColor color);
105 sk_sp<SkShader> create_checkerboard_shader(SkColor c1, SkColor c2, int size);
109 void draw_checkerboard(SkCanvas* canvas, SkColor color1, SkColor color2, int checkSize);
112 SkBitmap create_checkerboard_bitmap(int w, int h, SkColor c1, SkColor c2, int checkSize);
114 sk_sp<SkImage> create_checkerboard_image(int w, int h, SkColor c1, SkColor c2, int checkSize);
132 SkBitmap create_string_bitmap(int w, int h, SkColor c, int x, int y, int textSize, const char* str);
133 sk_sp<SkImage> create_string_image(int w, int h, SkColor c, int x, int y, int textSize, const char*…
/external/skia/gm/
Dtransparency.cpp27 const SkColor kColors[] = { in make_transparency()
40 SkColor shaderColors[2]; in make_transparency()
50 static sk_sp<SkShader> create_checkerboard_shader(SkColor c1, SkColor c2, int size) { in create_checkerboard_shader()
60 static void checkerboard(SkCanvas* canvas, SkColor c1, SkColor c2, int size) { in checkerboard()
Dshallowgradient.cpp22 typedef sk_sp<SkShader> (*MakeShaderProc)(const SkColor[], int count, const SkSize&);
24 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) { in shader_linear()
29 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) { in shader_radial()
35 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) { in shader_conical()
41 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) { in shader_sweep()
62 const SkColor colors[] = { 0xFF555555, 0xFF444444 }; in onDraw()
Dgammatext.cpp27 const SkColor bw[] = { SK_ColorBLACK, SK_ColorWHITE }; in make_heatGradient()
64 const SkColor fg[] = { in onDraw()
99 static sk_sp<SkShader> make_gradient(SkColor c) {
101 SkColor colors[2];
107 static void draw_pair(SkCanvas* canvas, const SkFont& font, SkColor color, in draw_pair()
121 SkColor fColors[3];
125 const SkColor colors[] = { SK_ColorBLACK, SK_ColorRED, SK_ColorBLUE }; in GammaShaderTextGM()
Dalphagradients.cpp35 SkColor c0, SkColor c1, bool doPreMul) { in draw_grad()
36 SkColor colors[] = { c0, c1 }; in draw_grad()
51 SkColor fColor0; in onDraw()
52 SkColor fColor1; in onDraw()
Droundrects.cpp29 static SkColor gen_color(SkRandom* rand) { in gen_color()
178 SkColor color = gen_color(&rand); in onDraw()
203 SkColor color = gen_color(&rand); in onDraw()
223 SkColor color = gen_color(&rand); in onDraw()
242 SkColor color = gen_color(&rand); in onDraw()
261 SkColor color = gen_color(&rand); in onDraw()
270 SkColor colors[] = { SK_ColorBLUE, SK_ColorRED, SK_ColorGREEN }; in onDraw()
282 SkColor color = gen_color(&rand); in onDraw()
317 SkColor color = gen_color(&rand); in onDraw()
338 const SkColor color = gen_color(&rand); in onDraw()
[all …]
Dcrbug_938592.cpp26 static constexpr SkColor c0 = SK_ColorBLUE;
27 static constexpr SkColor c1 = SK_ColorRED;
28 static constexpr SkColor c2 = SK_ColorGREEN;
29 static constexpr SkColor colors[] = {c0, c0, c1, c1, c2, c2};
Dgradients_no_texture.cpp29 const SkColor* fColors;
33 constexpr SkColor gColors[] = {
144 SkColor* fColors;
154 void construct(const SkColor colors[], const SkScalar pos[], int count) { in construct()
155 fColors = new SkColor[count]; in construct()
156 memcpy(fColors, colors, count * sizeof(SkColor)); in construct()
175 const SkColor colors[] = { in make0()
197 const SkColor colors[] = { in make1()
206 const SkColor colors[] = { in make2()
220 const SkColor colors[] = { in make3()
Dverylargebitmap.cpp29 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) { in draw()
39 static sk_sp<SkImage> make_raster_image(int width, int height, SkColor colors[2]) { in make_raster_image()
45 static sk_sp<SkImage> make_picture_image(int width, int height, SkColor colors[2]) { in make_picture_image()
54 typedef sk_sp<SkImage> (*ImageMakerProc)(int width, int height, SkColor colors[2]);
56 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2], in show_image()
107 SkColor colors[2]; in onDraw()
Dovals.cpp137 SkColor genColor(SkRandom* rand) { in genColor()
175 SkColor color = genColor(&rand); in onDraw()
197 SkColor color = genColor(&rand); in onDraw()
214 SkColor color = genColor(&rand); in onDraw()
230 SkColor color = genColor(&rand); in onDraw()
246 SkColor color = genColor(&rand); in onDraw()
255 SkColor colors[] = { SK_ColorBLUE, SK_ColorRED, SK_ColorGREEN }; in onDraw()
267 SkColor color = genColor(&rand); in onDraw()
291 SkColor color = genColor(&rand); in onDraw()
Dgradients.cpp35 const SkColor* fColors;
40 constexpr SkColor gColors[] = {
57 constexpr SkColor gColorClamp[] = {
399 SkColor colors[] = { SK_ColorRED, SK_ColorGREEN, SK_ColorGREEN, SK_ColorRED }; in onDraw()
439 SkColor colors[] = { SK_ColorGREEN, SK_ColorRED, SK_ColorYELLOW };
510 const SkColor colors[] = { 0x7f7f7f7f, 0x7f7f7f7f, 0xb2000000 }; in onDraw()
543 const SkColor sweep_colors[] = in onDraw()
545 const SkColor colors1[] = { 0xFFFFFFFF, 0x00000000 }; in onDraw()
546 const SkColor colors2[] = { 0xFF000000, 0x00000000 }; in onDraw()
605 const SkColor kColors[] = { 0xFFFFFFFF, 0xFF000000 }; in onOnceBeforeDraw()
[all …]
Dpathopsinverse.cpp32 SkColor blendColor = blend(oneColor, twoColor); in onOnceBeforeDraw()
44 SkColor blend(SkColor one, SkColor two) { in blend()
51 return *(SkColor*) pixels; in blend()
54 void makePaint(SkPaint* paint, SkColor color) { in makePaint()
Dhighcontrastfilter.cpp35 static SkColor kColor1 = SkColorSetARGB(0xff, 0xff, 0xff, 0);
36 static SkColor kColor2 = SkColorSetARGB(0xff, 0x82, 0xff, 0);
89 SkColor colors[] = { SK_ColorWHITE, SK_ColorBLACK }; in draw_scene()
97 SkColor colors2[] = { SK_ColorGREEN, SK_ColorWHITE }; in draw_scene()
109 SkColor g1Colors[] = { kColor1, SkColorSetA(kColor1, 0x20) }; in onOnceBeforeDraw()
110 SkColor g2Colors[] = { kColor2, SkColorSetA(kColor2, 0x20) }; in onOnceBeforeDraw()

12345678910>>...23