4REG_FIDDLE(radial_gradient_test, 256, 256,
false, 0) {
8 const SkColor preColor = 0xFFFF0000;
9 const SkColor postColor = 0xFF0000FF;
10 const SkColor color0 = 0xFF000000;
11 const SkColor color1 = 0xFF00FF00;
13 SkColor cs[] = {preColor, color0, color1, postColor};
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
static sk_sp< SkShader > MakeRadial(const SkPoint ¢er, SkScalar radius, const SkColor colors[], const SkScalar pos[], int count, SkTileMode mode, uint32_t flags=0, const SkMatrix *localMatrix=nullptr)
sk_sp< SkBlender > blender SkRect rect
REG_FIDDLE(radial_gradient_test, 256, 256, false, 0)
static constexpr SkRect MakeWH(float w, float h)