5static constexpr float kPi = 3.14159265358979323846f;
10 p.setColor(0x88FF0000);
15 SkScalar interv[2] = {120 * kPi / 6 - 0.05f, 0.0000f};
19 path.addCircle(128, 128, 60);
22 p.setColor(0x8800FF00);
23 SkScalar interv2[2] = {120 * kPi / 6 - 0.05f, 10000.0000f};
28 p.setColor(0xFF000000);
30 p.setPathEffect(
nullptr);
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawPath(const SkPath &path, const SkPaint &paint)
void drawCircle(SkScalar cx, SkScalar cy, SkScalar radius, const SkPaint &paint)
static sk_sp< SkPathEffect > Make(const SkScalar intervals[], int count, SkScalar phase)
@ kStroke_Style
set to stroke geometry
#define REG_FIDDLE(NAME, W, H, TEXT, I)
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)