Lines Matching refs:colors
24 static sk_sp<SkShader> shader_linear(const SkColor colors[], int count, const SkSize& size) {
26 return SkGradientShader::MakeLinear(pts, colors, nullptr, count, SkTileMode::kClamp);
29 static sk_sp<SkShader> shader_radial(const SkColor colors[], int count, const SkSize& size) {
31 return SkGradientShader::MakeRadial(center, size.width()/2, colors, nullptr, count,
35 static sk_sp<SkShader> shader_conical(const SkColor colors[], int count, const SkSize& size) {
38 colors, nullptr, count, SkTileMode::kClamp);
41 static sk_sp<SkShader> shader_sweep(const SkColor colors[], int count, const SkSize& size) {
42 return SkGradientShader::MakeSweep(size.width()/2, size.height()/2, colors, nullptr, count);
62 const SkColor colors[] = { 0xFF555555, 0xFF444444 };
63 const int colorCount = SK_ARRAY_COUNT(colors);
69 paint.setShader(fProc(colors, colorCount, size));