Lines Matching defs:paint
45 SkPaint paint;
49 paint.setShader(std::move(grad));
50 paint.setAntiAlias(true);
51 paint.setStyle(SkPaint::kStroke_Style);
52 paint.setStrokeWidth(kStripeW);
55 surf->getCanvas()->drawPoints(SkCanvas::kLines_PointMode, 2, stripePts, paint);
62 paint.setShader(std::move(grad));
63 paint.setBlendMode(SkBlendMode::kMultiply);
67 surf->getCanvas()->drawPoints(SkCanvas::kLines_PointMode, 2, stripePts, paint);
150 SkPaint paint;
151 paint.setAntiAlias(true);
152 paint.setColor(SK_ColorRED);
153 paint.setStyle(SkPaint::kStroke_Style);
154 paint.setStrokeWidth(0.f);
160 canvas->drawLine(pts[1] - v, pts[0] + v, paint);
167 canvas->drawLine(pts[1] - v, pts[0] + v, paint);
238 SkPaint paint;
239 paint.setBlendMode(SkBlendMode::kSrcOver);
252 &paint, SkCanvas::kFast_SrcRectConstraint);
276 &paint, SkCanvas::kFast_SrcRectConstraint);
292 // This GM exercises alpha-only and color textures being combined correctly with the paint's color.
323 SkPaint paint;
324 paint.setBlendMode(SkBlendMode::kSrcOver);
325 paint.setColor4f({0.2f, 0.8f, 0.4f, 1.f}); // colorizes even rows, no effect on odd rows
329 SkSamplingOptions(SkFilterMode::kLinear), &paint,
338 SkPaint entryPaint = paint;
339 entryPaint.setAlphaf(fSet[i].fAlpha * paint.getAlphaf());