Go to the source code of this file.
◆ DEF_SIMPLE_GM()
DEF_SIMPLE_GM |
( |
points_maskfilter |
, |
|
|
canvas |
, |
|
|
512 |
, |
|
|
256 |
|
|
) |
| |
Definition at line 78 of file points.cpp.
78 {
81
84 p.fX = rand.
nextF() * 220 + 18;
85 p.fY = rand.
nextF() * 220 + 18;
86 }
87
90
92 paint.setAntiAlias(
true);
93 paint.setStroke(
true);
94 paint.setStrokeWidth(10);
95
96 for (auto cap : caps) {
97 paint.setStrokeCap(cap);
98
99 paint.setMaskFilter(mf);
102
103 paint.setMaskFilter(
nullptr);
106
107 canvas->translate(256, 0);
108 }
109}
@ kNormal_SkBlurStyle
fuzzy inside and outside
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
@ kPoints_PointMode
draw each point separately
static sk_sp< SkMaskFilter > MakeBlur(SkBlurStyle style, SkScalar sigma, bool respectCTM=true)