4REG_FIDDLE(skpaint_line_2d_path_effect, 256, 256,
false, 0) {
11 paint.setAntiAlias(
true);
constexpr SkColor SK_ColorWHITE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void drawRect(const SkRect &rect, const SkPaint &paint)
void clear(SkColor color)
static sk_sp< SkPathEffect > Make(SkScalar width, const SkMatrix &matrix)
SkMatrix & setScale(SkScalar sx, SkScalar sy, SkScalar px, SkScalar py)
SkMatrix & preRotate(SkScalar degrees, SkScalar px, SkScalar py)
Optional< SkRect > bounds
REG_FIDDLE(skpaint_line_2d_path_effect, 256, 256, false, 0)
static constexpr SkRect MakeWH(float w, float h)