4REG_FIDDLE(skpaint_discrete_path_effect, 256, 256,
false, 0) {
9 for (
int i = 1; i < 8; ++i) {
11 path.lineTo(
C +
R * cos(
a),
C +
R * sin(
a));
19 paint.setStrokeWidth(2.0f);
20 paint.setAntiAlias(
true);
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void clear(SkColor color)
void drawPath(const SkPath &path, const SkPaint &paint)
static sk_sp< SkPathEffect > Make(SkScalar segLength, SkScalar dev, uint32_t seedAssist=0)
@ kStroke_Style
set to stroke geometry
#define REG_FIDDLE(NAME, W, H, TEXT, I)