Go to the source code of this file.
◆ REG_FIDDLE()
REG_FIDDLE |
( |
zero_off_dashing |
, |
|
|
256 |
, |
|
|
256 |
, |
|
|
false |
, |
|
|
0 |
|
|
) |
| |
Definition at line 4 of file zero_off_dashing.cpp.
4 {
5static constexpr float kPi = 3.14159265358979323846f;
9
10 p.setColor(0x88FF0000);
15 SkScalar interv[2] = {120 *
kPi / 6 - 0.05f, 0.0000f};
17
19 path.addCircle(128, 128, 60);
21
22 p.setColor(0x8800FF00);
23 SkScalar interv2[2] = {120 *
kPi / 6 - 0.05f, 10000.0000f};
26
28 p.setColor(0xFF000000);
30 p.setPathEffect(
nullptr);
32}
33}
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
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)