20 constexpr static int kGridCount = 50;
22 for (
int y = 0;
y < kGridCount; ++
y) {
25 for (
int x = 0;
x < kGridCount; ++
x) {
30 flower.setFillType(fillType);
32 constexpr static int kNumPetals = 9;
33 for (
int i = 1;
i <= kNumPetals; ++
i) {
36 flower.quadTo(cosf(c)*2, sinf(c)*2, cosf(theta), sinf(theta));
constexpr SkColor SK_ColorMAGENTA
constexpr SkColor SK_ColorCYAN
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
void translate(SkScalar dx, SkScalar dy)
void clear(SkColor color)
void clipPath(const SkPath &path, SkClipOp op, bool doAntiAlias)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
void setFillType(SkPathFillType ft)
SkPath & addRect(const SkRect &rect, SkPathDirection dir, unsigned start)
static void flower(SkCanvas *canvas, const SkPath &path, SkScalar intervals[2], SkPaint::Join join)
static void draw_clipped_flower(SkCanvas *canvas, SkPathFillType fillType)
DEF_SIMPLE_GM(largeclippedpath_winding, canvas, kSize, kSize)
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)