4REG_FIDDLE(convex_overstroke_linear_approx_curve, 256, 256,
false, 0) {
11 const float PI = 3.1415926;
21 for (
int i = 0; i < 10; i++) {
29 for (
int i = 0; i < 10; i++) {
39 p.setStrokeWidth(
WIDTH);
static const int points[]
constexpr SkColor SK_ColorRED
constexpr SkColor SK_ColorBLACK
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
void setStyle(Style style)
void setColor(SkColor color)
void setAntiAlias(bool aa)
@ kStroke_Style
set to stroke geometry
void setStrokeWidth(SkScalar width)
#define REG_FIDDLE(NAME, W, H, TEXT, I)
SK_API bool FillPathWithPaint(const SkPath &src, const SkPaint &paint, SkPath *dst, const SkRect *cullRect, SkScalar resScale=1)
static constexpr SkPoint Make(float x, float y)