/external/skia/tests/ |
D | ShaderOpacityTest.cpp | 63 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient() 64 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient() 70 colors[0] = SkColorSetARGB(0, 0, 0, 0); in test_gradient() 71 colors[1] = SkColorSetARGB(0, 0, 0, 0); in test_gradient() 77 colors[0] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient() 78 colors[1] = SkColorSetARGB(0x40, 0, 0, 0); in test_gradient() 84 colors[0] = SkColorSetARGB(0x40, 0, 0, 0); in test_gradient() 85 colors[1] = SkColorSetARGB(0xFF, 0, 0, 0); in test_gradient() 92 sk_sp<SkShader> colorShader1 = SkShaders::Color(SkColorSetARGB(0,0,0,0)); in test_color() 94 sk_sp<SkShader> colorShader2 = SkShaders::Color(SkColorSetARGB(0xFF,0,0,0)); in test_color() [all …]
|
/external/skia/include/core/ |
D | SkColor.h | 49 static constexpr inline SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) { in SkColorSetARGB() function 57 #define SkColorSetRGB(r, g, b) SkColorSetARGB(0xFF, r, g, b) 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); 131 constexpr SkColor SK_ColorGREEN = SkColorSetARGB(0xFF, 0x00, 0xFF, 0x00); [all …]
|
/external/skia/docs/examples/ |
D | skbug6031.cpp | 13 paint.setColor(SkColorSetARGB(0, 0, 0, 0)); in draw() 17 paint.setColor(SkColorSetARGB(255, 127, 0, 0)); in draw() 21 paint.setColor(SkColorSetARGB(255, 0, 127, 0)); in draw() 25 paint.setColor(SkColorSetARGB(255, 0, 0, 127)); in draw() 29 paint.setColor(SkColorSetARGB(255, 127, 127, 0)); in draw()
|
D | flag_us_1960.cpp | 7 canvas->clear(SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF)); in draw() 9 paint.setColor(SkColorSetARGB(0xFF, 0xB2, 0x22, 0x34)); in draw() 13 paint.setColor(SkColorSetARGB(0xFF, 0x3C, 0x3B, 0x6E)); in draw() 15 paint.setColor(SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF)); in draw()
|
D | flag_us_1792.cpp | 7 canvas->clear(SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF)); in draw() 9 paint.setColor(SkColorSetARGB(0xFF, 0xB2, 0x22, 0x34)); in draw() 13 paint.setColor(SkColorSetARGB(0xFF, 0x3C, 0x3B, 0x6E)); in draw() 15 paint.setColor(SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF)); in draw()
|
D | SkPath_cubicTo_example_parametric_animated.cpp | 40 canvas->clear(SkColorSetARGB(255,255,255,255)); in draw() 68 paint.setColor(SkColorSetARGB(255, 0, 0, 255)); in draw() 76 textPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw() 85 textPaint.setColor(SkColorSetARGB(255, 204, 204, 204)); in draw() 93 pointPaint.setColor(SkColorSetARGB(255, 255, 0, 0)); in draw() 96 pointPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw()
|
D | SkPath_cubicTo_example_parametric.cpp | 29 canvas->clear(SkColorSetARGB(255, 255, 255, 255)); in draw() 50 paint.setColor(SkColorSetARGB(255, 0, 0, 255)); in draw() 57 textPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw() 68 pointPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw() 74 pointPaint.setColor(SkColorSetARGB(255, 255, 0, 0)); in draw()
|
D | Canvas_clear.cpp | 9 canvas->clear(SkColorSetARGB(0x80, 0xFF, 0x00, 0x00)); in draw() 13 canvas->clear(SkColorSetARGB(0x80, 0x00, 0xFF, 0x00)); in draw() 16 canvas->clear(SkColorSetARGB(0x80, 0x00, 0x00, 0xFF)); in draw()
|
D | text_rendering.cpp | 26 paint1.setColor(SkColorSetARGB(0xFF, 0x42, 0x85, 0xF4)); in draw() 29 paint2.setColor(SkColorSetARGB(0xFF, 0xDB, 0x44, 0x37)); in draw() 34 paint3.setColor(SkColorSetARGB(0xFF, 0x0F, 0x9D, 0x58)); in draw()
|
D | SkPath_cubicTo_example.cpp | 20 canvas->clear(SkColorSetARGB(255, 255, 255, 255)); in draw() 41 paint.setColor(SkColorSetARGB(255, 0, 0, 255)); in draw() 48 textPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw()
|
D | SkPath_arcto_conic_parametric.cpp | 14 canvas->clear(SkColorSetARGB(255, 255, 255, 255)); in draw() 32 paint.setColor(SkColorSetARGB(255, 0, 0, 255)); in draw() 39 pointPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw() 60 pointPaint.setColor(SkColorSetARGB(255, 255, 0, 0)); in draw()
|
D | SkPath_arcto_conic_parametric2.cpp | 31 canvas->clear(SkColorSetARGB(255, 255, 255, 255)); in draw() 50 arcPaint.setColor(SkColorSetARGB(255, 0, 0, 255)); in draw() 57 pointPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw() 81 pointPaint.setColor(SkColorSetARGB(255, 255, 0, 0)); in draw()
|
D | SkPath_quadTo_example_parametric.cpp | 23 canvas->clear(SkColorSetARGB(255, 255, 255, 255)); in draw() 41 paint.setColor(SkColorSetARGB(255, 0, 0, 255)); in draw() 58 pointPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw()
|
D | ColorSetARGB.cpp | 9 canvas->drawColor(SkColorSetARGB(0x80, 0x00, 0xFF, 0x00)); in draw() 11 canvas->drawColor(SkColorSetARGB(0x80, 0x00, 0x00, 0xFF)); in draw()
|
D | Canvas_drawColor.cpp | 9 canvas->drawColor(SkColorSetARGB(0x80, 0x00, 0xFF, 0x00), SkBlendMode::kPlus); in draw() 11 canvas->drawColor(SkColorSetARGB(0x80, 0x00, 0x00, 0xFF), SkBlendMode::kPlus); in draw()
|
D | SkPath_arcTo_example.cpp | 6 canvas->clear(SkColorSetARGB(255, 255, 255, 255)); in draw() 22 paint.setColor(SkColorSetARGB(255, 0, 0, 255)); in draw()
|
D | SkPath_quadTo_example_parametric_animated.cpp | 38 canvas->clear(SkColorSetARGB(255,255,255,255)); in draw() 59 paint.setColor(SkColorSetARGB(255,0,0,255)); in draw() 76 pointPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in draw()
|
D | skpaint_mix.cpp | 19 fillPaint.setColor(SkColorSetARGB(0xFF, 0xFF, 0x00, 0x00)); in draw() 22 fillPaint.setColor(SkColorSetARGB(0xFF, 0x00, 0x00, 0xFF)); in draw()
|
D | SkPath_quadTo_example.cpp | 6 canvas->clear(SkColorSetARGB(255, 255, 255, 255)); in draw() 24 paint.setColor(SkColorSetARGB(255, 0, 0, 255)); in draw()
|
/external/skia/gm/ |
D | modecolorfilters.cpp | 41 return make_color_shader(SkColorSetARGB(0xFF, 0x42, 0x82, 0x21)); in make_solid_shader() 45 return make_color_shader(SkColorSetARGB(0x80, 0x10, 0x70, 0x20)); in make_transparent_shader() 107 SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF), in onDraw() 108 SkColorSetARGB(0xFF, 0x00, 0x00, 0x00), in onDraw() 109 SkColorSetARGB(0x00, 0x00, 0x00, 0x00), in onDraw() 110 SkColorSetARGB(0xFF, 0x10, 0x20, 0x42), in onDraw() 111 SkColorSetARGB(0xA0, 0x20, 0x30, 0x90), in onDraw()
|
D | recordopts.cpp | 67 layerPaint.setColor(SkColorSetARGB(128, 0, 0, 0)); in draw_save_layer_draw_rect_restore_sequence() 94 layerPaint.setColor(SkColorSetARGB(129, 0, 0, 0)); in draw_save_layer_draw_bitmap_restore_sequence() 120 layerPaint.setColor(SkColorSetARGB(130, 0, 0, 0)); in draw_svg_opacity_and_filter_layer_sequence() 157 SkColor shapeColor = SkColorSetARGB(255, 0, 255, 0); 191 SkColorSetARGB(255, 0, kDetectorGreenValue, 0), 192 SkColorSetARGB(255, 0, (kDetectorGreenValue + 1), 0) // This tests that detectors work.
|
D | androidblendmodes.cpp | 122 static const SkColor kBlue = SkColorSetARGB(255, 22, 150, 243); 123 static const SkColor kRed = SkColorSetARGB(255, 233, 30, 99); 124 static const SkColor kWhite = SkColorSetARGB(255, 243, 243, 243); 125 static const SkColor kGrey = SkColorSetARGB(255, 222, 222, 222);
|
D | shadowutils.cpp | 31 SkColor ambientColor = SkColorSetARGB(ambientAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow() 33 SkColor spotColor = SkColorSetARGB(spotAlpha*SkColorGetA(color), SkColorGetR(color), in draw_shadow() 125 SkColor ambientColor = SkColorSetARGB(0.1f * 255, 0, 0, 0); in draw_paths() 126 SkColor spotColor = SkColorSetARGB(0.25f * 255, 0, 0, 0); in draw_paths() 186 SkColor ambientColor = SkColorSetARGB(0.1f * 255, 0, 0, 0); in draw_paths() 187 SkColor spotColor = SkColorSetARGB(0.25f * 255, 0, 0, 0); in draw_paths() 269 SkColor ambientColor = SkColorSetARGB(0.02f * 255, 0, 0, 0); 270 SkColor spotColor = SkColorSetARGB(0.35f * 255, 0, 0, 0);
|
D | crbug_224618.cpp | 39 static const SkColor kColors[2] = {SK_ColorTRANSPARENT, SkColorSetARGB(128, 255, 255, 255)}; in onOnceBeforeDraw() 79 SkColorSetARGB(0xFF, 0xFF, 0xA5, 0x00), // orange css in onDraw() 80 SkColorSetARGB(0xFF, 0x80, 0x00, 0x80) // purple css in onDraw()
|
/external/skia/tools/viewer/ |
D | ShadowColorSlide.cpp | 168 SkColor ambientColor = SkColorSetARGB(ambientAlpha*255, 0, 0, 0); in drawShadowedPath() 183 SkColor spotColor = SkColorSetARGB(alpha*SkColorGetA(color), SkColorGetR(color), in drawShadowedPath() 191 SkColor spotGreyscale = SkColorSetARGB(spotAlpha * 255, 0, 0, 0); in drawShadowedPath() 197 SkColor baseAmbient = SkColorSetARGB(ambientAlpha*SkColorGetA(color), in drawShadowedPath() 200 SkColor baseSpot = SkColorSetARGB(spotAlpha*SkColorGetA(color), in drawShadowedPath()
|