Home | History | Annotate | Download | only in gm

Lines Matching refs:colors

15 static void draw(SkCanvas* canvas, int width, int height, SkColor colors[2]) {
19 paint.setShader(SkGradientShader::MakeRadial(center, radius, colors, nullptr, 2,
25 static sk_sp<SkImage> make_raster_image(int width, int height, SkColor colors[2]) {
27 draw(surface->getCanvas(), width, height, colors);
31 static sk_sp<SkImage> make_picture_image(int width, int height, SkColor colors[2]) {
33 draw(recorder.beginRecording(SkRect::MakeIWH(width, height)), width, height, colors);
40 typedef sk_sp<SkImage> (*ImageMakerProc)(int width, int height, SkColor colors[2]);
42 static void show_image(SkCanvas* canvas, int width, int height, SkColor colors[2],
44 sk_sp<SkImage> image(proc(width, height, colors));
95 SkColor colors[2];
98 colors[0] = SK_ColorRED;
99 colors[1] = SK_ColorGREEN;
100 show_image(canvas, small, small, colors, fProc);
103 colors[0] = SK_ColorBLUE;
104 colors[1] = SK_ColorMAGENTA;
105 show_image(canvas, big, small, colors, fProc);
108 colors[0] = SK_ColorMAGENTA;
109 colors[1] = SK_ColorYELLOW;
110 show_image(canvas, medium, medium, colors, fProc);
113 colors[0] = SK_ColorGREEN;
114 colors[1] = SK_ColorYELLOW;
117 show_image(canvas, veryBig, small, colors, fProc);