Lines Matching refs:colors
28 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) { in draw()
32 paint.setShader(SkGradientShader::MakeRadial(center, radius, colors, nullptr, 2, in draw()
38 static sk_sp<SkImage> make_raster_image(int width, int height, SkColor colors[2]) { in make_raster_image()
40 draw(surface->getCanvas(), width, height, colors); in make_raster_image()
44 static sk_sp<SkImage> make_picture_image(int width, int height, SkColor colors[2]) { in make_picture_image()
46 draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors); in make_picture_image()
53 typedef sk_sp<SkImage> (*ImageMakerProc)(int width, int height, SkColor colors[2]);
55 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2], in show_image()
57 sk_sp<SkImage> image(proc(width, height, colors)); in show_image()
103 SkColor colors[2]; in onDraw() local
106 colors[0] = SK_ColorRED; in onDraw()
107 colors[1] = SK_ColorGREEN; in onDraw()
108 show_image(canvas, small, small, colors, fProc); in onDraw()
111 colors[0] = SK_ColorBLUE; in onDraw()
112 colors[1] = SK_ColorMAGENTA; in onDraw()
113 show_image(canvas, big, small, colors, fProc); in onDraw()
116 colors[0] = SK_ColorMAGENTA; in onDraw()
117 colors[1] = SK_ColorYELLOW; in onDraw()
118 show_image(canvas, medium, medium, colors, fProc); in onDraw()
121 colors[0] = SK_ColorGREEN; in onDraw()
122 colors[1] = SK_ColorYELLOW; in onDraw()
124 show_image(canvas, veryBig, small, colors, fProc); in onDraw()