/third_party/skia/docs/examples/ |
H A D | SkPath_cubicTo_example.cpp | 47 SkPaint textPaint; in REG_FIDDLE() local 48 textPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in REG_FIDDLE() 49 textPaint.setAntiAlias(true); in REG_FIDDLE() 50 canvas->drawString("a", a.x(), a.y(), font, textPaint); in REG_FIDDLE() 51 canvas->drawString("b", b.x(), b.y(), font, textPaint); in REG_FIDDLE() 52 canvas->drawString("c", c.x() - 20, c.y(), font, textPaint); in REG_FIDDLE() 53 canvas->drawString("d", d.x(), d.y(), font, textPaint); in REG_FIDDLE()
|
H A D | Path_FillType_b.cpp | 16 SkPaint textPaint; in REG_FIDDLE() local 17 textPaint.setAntiAlias(true); in REG_FIDDLE() 19 canvas->drawPosTextH("01210", 5, textHPos, 48, textPaint); in REG_FIDDLE() 20 textPaint.setTextSize(18); in REG_FIDDLE() 23 canvas->drawString("inverse", 384, 150, textPaint); in REG_FIDDLE() 32 canvas->drawString(fillType & 1 ? "even-odd" : "winding", 64, 170, textPaint); in REG_FIDDLE()
|
H A D | SkPath_cubicTo_example_parametric_animated.cpp | 75 SkPaint textPaint; in REG_FIDDLE_ANIMATED() local 76 textPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in REG_FIDDLE_ANIMATED() 77 textPaint.setAntiAlias(true); in REG_FIDDLE_ANIMATED() 80 canvas->drawString("a", a.x(), a.y(), font, textPaint); in REG_FIDDLE_ANIMATED() 81 canvas->drawString("b", b.x(), b.y(), font, textPaint); in REG_FIDDLE_ANIMATED() 82 canvas->drawString("c", c.x()-20, c.y(), font, textPaint); in REG_FIDDLE_ANIMATED() 83 canvas->drawString("d", d.x(), d.y(), font, textPaint); in REG_FIDDLE_ANIMATED() 85 textPaint.setColor(SkColorSetARGB(255, 204, 204, 204)); in REG_FIDDLE_ANIMATED() 86 canvas->drawString(msg.c_str(), 4, 36, font, textPaint); in REG_FIDDLE_ANIMATED()
|
H A D | Path_arcTo_2_a.cpp | 10 SkPaint textPaint(tangentPaint); in REG_FIDDLE() 35 canvas->drawString("(x0, y0)", pts[0].fX - 5, pts[0].fY, textPaint); in REG_FIDDLE() 36 canvas->drawString("(x1, y1)", pts[1].fX + 5, pts[1].fY, textPaint); in REG_FIDDLE() 37 canvas->drawString("(x2, y2)", pts[2].fX, pts[2].fY + 15, textPaint); in REG_FIDDLE() 38 canvas->drawString("radius", center.fX + 15, center.fY + 25, textPaint); in REG_FIDDLE() 39 canvas->drawString("radius", center.fX - 3, center.fY - 16, textPaint); in REG_FIDDLE()
|
H A D | Path_arcTo_2_b.cpp | 10 SkPaint textPaint(tangentPaint); in REG_FIDDLE() 34 canvas->drawString("(x0, y0)", pts[0].fX, pts[0].fY - 7, textPaint); in REG_FIDDLE() 35 canvas->drawString("(x1, y1)", pts[1].fX + 5, pts[1].fY, textPaint); in REG_FIDDLE() 36 canvas->drawString("(x2, y2)", pts[2].fX, pts[2].fY + 15, textPaint); in REG_FIDDLE() 37 canvas->drawString("radius", center.fX + 15, center.fY + 25, textPaint); in REG_FIDDLE() 38 canvas->drawString("radius", center.fX - 5, center.fY - 20, textPaint); in REG_FIDDLE()
|
H A D | SkPath_cubicTo_example_parametric.cpp | 56 SkPaint textPaint; in REG_FIDDLE() local 57 textPaint.setColor(SkColorSetARGB(255, 0, 255, 0)); in REG_FIDDLE() 58 textPaint.setAntiAlias(true); in REG_FIDDLE() 59 canvas->drawString("a", a.x(), a.y(), font, textPaint); in REG_FIDDLE() 60 canvas->drawString("b", b.x(), b.y(), font, textPaint); in REG_FIDDLE() 61 canvas->drawString("c", c.x() - 20, c.y(), font, textPaint); in REG_FIDDLE() 62 canvas->drawString("d", d.x(), d.y(), font, textPaint); in REG_FIDDLE()
|
H A D | SkPath_quadTo_example.cpp | 31 SkPaint textPaint; in REG_FIDDLE() local 32 textPaint.setAntiAlias(true); in REG_FIDDLE() 33 canvas->drawString("a", a.x(), a.y(), font, textPaint); in REG_FIDDLE() 34 canvas->drawString("b", b.x() + 20, b.y() + 20, font, textPaint); in REG_FIDDLE() 35 canvas->drawString("c", c.x(), c.y(), font, textPaint); in REG_FIDDLE()
|
H A D | SkPath_quadTo_example_parametric.cpp | 48 SkPaint textPaint; in REG_FIDDLE() local 49 textPaint.setAntiAlias(true); in REG_FIDDLE() 50 canvas->drawString("a", a.x(), a.y(), font, textPaint); in REG_FIDDLE() 51 canvas->drawString("b", b.x() + 20, b.y() + 20, font, textPaint); in REG_FIDDLE() 52 canvas->drawString("c", c.x(), c.y(), font, textPaint); in REG_FIDDLE()
|
H A D | SkPath_quadTo_example_parametric_animated.cpp | 65 SkPaint textPaint; in REG_FIDDLE_ANIMATED() local 67 textPaint.setAntiAlias(true); in REG_FIDDLE_ANIMATED() 68 canvas->drawString("a", a.x(), a.y(), font, textPaint); in REG_FIDDLE_ANIMATED() 69 canvas->drawString("b", b.x()+20, b.y()+20, font, textPaint); in REG_FIDDLE_ANIMATED() 70 canvas->drawString("c", c.x(), c.y(), font, textPaint); in REG_FIDDLE_ANIMATED()
|
H A D | Path_addOval_2.cpp | 12 SkPaint textPaint(ovalPaint); in REG_FIDDLE() 25 canvas->drawText(&"0123"[start], 1, rect.centerX(), rect.centerY() + 5, textPaint); in REG_FIDDLE() 30 128, 0, textPaint); in REG_FIDDLE()
|
H A D | Path_Direction.cpp | 12 SkPaint textPaint(rectPaint); in REG_FIDDLE() 27 rect.centerY(), textPaint); in REG_FIDDLE()
|
H A D | Arc.cpp | 11 SkPaint textPaint(ovalPaint); in REG_FIDDLE() 19 canvas->drawText(&arcStyle, 1, 30, 36, textPaint); in REG_FIDDLE()
|
/third_party/skia/modules/canvaskit/npm_build/ |
H A D | node.example.js | 60 const textPaint = new CanvasKit.Paint(); 61 textPaint.setColor(CanvasKit.Color(40, 0, 0)); 62 textPaint.setAntiAlias(true); 78 canvas.drawText('Try Clicking!', 10, 280, textPaint, textFont); 100 textPaint.delete();
|
/third_party/skia/gm/ |
H A D | bmpfilterqualityrepeat.cpp | 67 SkPaint textPaint; in drawAll() local 68 textPaint.setAntiAlias(true); in drawAll() 70 SkPaint bmpPaint(textPaint); in drawAll() 90 canvas->drawString(rec.name, 20, 40, font, textPaint); in drawAll()
|
H A D | lcdoverlap.cpp | 72 SkPaint textPaint; in drawTestCase() local 73 textPaint.setColor(colors[i]); in drawTestCase() 74 textPaint.setBlendMode(i % 2 == 0 ? mode : mode2); in drawTestCase() 75 canvas->drawTextBlob(fBlob, 0, 0, textPaint); in drawTestCase()
|
H A D | imageblur2.cpp | 54 SkPaint textPaint; in DEF_SIMPLE_GM() local 55 textPaint.setColor(ToolUtils::color_to_565(rand.nextBits(24) | 0xFF000000)); in DEF_SIMPLE_GM() 61 textPaint); in DEF_SIMPLE_GM()
|
H A D | imageblur.cpp | 30 SkPaint textPaint; in imageblurgm_draw() local 35 textPaint.setColor(ToolUtils::color_to_565(rand.nextBits(24) | 0xFF000000)); in imageblurgm_draw() 37 canvas->drawString(str, SkIntToScalar(x), SkIntToScalar(y), font, textPaint); in imageblurgm_draw()
|
H A D | simpleaaclip.cpp | 168 SkPaint textPaint; variable 173 canvas->drawString(gOps[op].fName, 75.0f, 50.0f, font, textPaint);
|
H A D | imagemakewithfilter.cpp | 304 SkPaint textPaint; variable 305 textPaint.setAntiAlias(true); 308 canvas->drawString(filterNames[i], DX * i + MARGIN, 15, font, textPaint);
|
H A D | gm.cpp | 43 SkPaint textPaint(SkColors::kWhite); in draw_failure_message() 44 canvas->drawString(failureMsg, kOffset, bounds.height() + kOffset, font, textPaint); in draw_failure_message()
|
H A D | tilemodes_scaled.cpp | 94 SkPaint textPaint; variable 153 scale * x, scale * (y + r.height() * 2 / 3), font, textPaint);
|
H A D | tilemodes.cpp | 92 SkPaint textPaint; variable 151 x, y + r.height() * 2 / 3, font, textPaint);
|
/third_party/skia/samplecode/ |
H A D | SampleFitCubicToCircle.cpp | 178 SkPaint textPaint; in onDrawContent() local 179 textPaint.setColor(SK_ColorWHITE); in onDrawContent() 184 canvas->drawString(infoString.c_str(), 10, infoY, font, textPaint); in onDrawContent()
|
/third_party/skia/tests/ |
H A D | FlattenDrawableTest.cpp | 259 SkPaint textPaint; in DEF_TEST() local 260 textPaint.setColor(SK_ColorBLUE); in DEF_TEST() 261 canvas->drawString("TEXT", 467.0f, 100.0f, SkFont(), textPaint); in DEF_TEST() 269 sk_sp<CompoundDrawable> comDrawable(new CompoundDrawable(13, 14, 15, 16, textPaint)); in DEF_TEST()
|
H A D | ImageFilterTest.cpp | 771 SkPaint textPaint; in DEF_TEST() local 772 textPaint.setColor(SK_ColorWHITE); in DEF_TEST() 800 tiledCanvas.drawString(text, 0, yPos, font, textPaint); in DEF_TEST()
|