Home | History | Annotate | Download | only in gm

Lines Matching full:colors

13 static SkShader* shader_linear(const SkColor colors[], int count, const SkSize& size) {
15 return SkGradientShader::CreateLinear(pts, colors, nullptr, count,
19 static SkShader* shader_radial(const SkColor colors[], int count, const SkSize& size) {
21 return SkGradientShader::CreateRadial(center, size.width()/2, colors, nullptr, count,
25 static SkShader* shader_conical(const SkColor colors[], int count, const SkSize& size) {
29 colors, nullptr, count,
33 static SkShader* shader_sweep(const SkColor colors[], int count, const SkSize& size) {
35 colors, nullptr, count);
57 const SkColor colors[] = { sk_tool_utils::color_to_565(0xFF555555),
59 const int colorCount = SK_ARRAY_COUNT(colors);
65 paint.setShader(fProc(colors, colorCount, size))->unref();