12 {
13
14
15
16
17
18
19
20
21
22
23
24
26 b.moveTo(45.125f, 102.53701800000002f)
27 .lineTo(135.375f, 162.666156f)
28 .lineTo(225.625f, 116.622276f)
29 .lineTo(315.875f, 121.52087700000001f)
30 .lineTo(406.125f, 134.632899f)
31 .lineTo(496.375f, 192.317736f)
32 .lineTo(586.625f, 138.82944899999998f)
33 .lineTo(676.875f, 234.212031f)
34 .lineTo(767.125f, 207.082926f)
35 .lineTo(857.375f, 128.083857f)
36 .lineTo(947.625f, 127.95689999999999f)
37 .lineTo(1037.875f, 113.956785f);
38
41 p.setStrokeWidth(2.f);
46
47 canvas->save();
48 canvas->translate(-50.f, -200.f);
49 canvas->scale(2.f, 2.f);
50 canvas->drawPath(
b.detach(),
p);
51 canvas->restore();
52
53
54
55
56
57
58
59
60
61
62 b.moveTo(128.5307f, 587.5728f)
63 .lineTo(232.4748f, 617.037f)
64 .lineTo(335.4189f, 624.8472f)
65 .lineTo(438.3631f, 630.5933f)
66 .lineTo(541.3073f, 625.1138f)
67 .lineTo(644.2513f, 626.8717f)
68 .lineTo(747.1955f, 629.9542f)
69 .lineTo(850.1396f, 629.6956f)
70 .lineTo(953.0838f, 616.4909f)
71 .lineTo(1056.028f, 613.8181f);
73 p.setStrokeWidth(3.f);
76 p.setStrokeMiter(10.f);
77
78 canvas->save();
79 canvas->translate(-300.f, -900.f);
80 canvas->scale(2.f, 2.f);
81 canvas->drawPath(
b.detach(),
p);
82 canvas->restore();
83}
constexpr SkColor SK_ColorRED
static constexpr SkColor SkColorSetARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b)
@ kButt_Cap
no stroke extension
@ kStroke_Style
set to stroke geometry
@ kBevel_Join
connects outside edges