Lines Matching defs:paint
151 SkPaint paint;
152 paint.setAntiAlias(true);
153 paint.setStyle(SkPaint::kStroke_Style);
155 paint.setStrokeWidth(h/12.f);
156 paint.setColor(SK_ColorRED);
157 surf->getCanvas()->drawLine({0.f, 1.f*h/8.f}, {w, 1.f*h/8.f}, paint);
158 paint.setColor(/* sea foam */ 0xFF71EEB8);
159 surf->getCanvas()->drawLine({0.f, 1.f*h/4.f}, {w, 1.f*h/4.f}, paint);
160 paint.setColor(SK_ColorYELLOW);
161 surf->getCanvas()->drawLine({0.f, 3.f*h/4.f}, {w, 3.f*h/4.f}, paint);
162 paint.setColor(SK_ColorCYAN);
163 surf->getCanvas()->drawLine({0.f, 7.f*h/8.f}, {w, 7.f*h/8.f}, paint);
166 paint.setStrokeWidth(w/12.f);
167 paint.setColor(/* orange */ 0xFFFFA500);
168 surf->getCanvas()->drawLine({1.f*w/8.f, 0.f}, {1.f*h/8.f, h}, paint);
169 paint.setColor(SK_ColorBLUE);
170 surf->getCanvas()->drawLine({1.f*w/4.f, 0.f}, {1.f*h/4.f, h}, paint);
171 paint.setColor(SK_ColorMAGENTA);
172 surf->getCanvas()->drawLine({3.f*w/4.f, 0.f}, {3.f*h/4.f, h}, paint);
173 paint.setColor(SK_ColorGREEN);
174 surf->getCanvas()->drawLine({7.f*w/8.f, 0.f}, {7.f*h/8.f, h}, paint);
277 GrPaint paint;
278 paint.setColorFragmentProcessor(std::move(fp));
279 sdc->drawRect(nullptr, std::move(paint), GrAA::kNo, m, SkRect::Make(testArea));
299 // Compose against white (default paint color)
303 GrPaint paint;
304 // Compose against white (default paint color) and then replace the dst
309 paint.setColorFragmentProcessor(std::move(fp));
310 paint.setPorterDuffXPFactory(SkBlendMode::kSrc);
312 std::move(paint),
321 GrPaint paint;
323 paint.setColor4f({0, kAlpha, 0, kAlpha});
329 sdc->drawRect(nullptr, std::move(paint), GrAA::kNo, m, dstR, &style);
334 GrPaint paint;
336 paint.setColor4f({0, 0, 0, kAlpha});
342 sdc->drawRect(nullptr, std::move(paint), GrAA::kNo, m, srcR, &style);
407 GrPaint paint;
408 paint.setColor4f(b == blur ? SkPMColor4f{0, 0, 1, 1} : SkPMColor4f{1, 0, 0, 1});
410 std::move(paint),