Go to the source code of this file.
|
| REG_FIDDLE (radial_gradient_test, 256, 256, false, 0) |
|
◆ SIZE
◆ REG_FIDDLE()
REG_FIDDLE |
( |
radial_gradient_test |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file radial_gradient_test.cpp.
4 {
6#define SIZE 121
8 const SkColor preColor = 0xFFFF0000;
9 const SkColor postColor = 0xFF0000FF;
10 const SkColor color0 = 0xFF000000;
11 const SkColor color1 = 0xFF00FF00;
12
13 SkColor cs[] = {preColor, color0, color1, postColor};
15
18
23}
24}
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
static constexpr SkRect MakeWH(float w, float h)