149 {
152 paint.setAntiAlias(
true);
153
154 MandolineSlicer mandoline({41, 43});
155 mandoline.sliceCubic({5, 277}, {381, -74}, {243, 162});
156 mandoline.sliceLine({41, 43});
158
159 mandoline.reset({357.049988f, 446.049988f});
160 mandoline.sliceCubic({472.750000f, -71.950012f}, {639.750000f, 531.950012f},
161 {309.049988f, 347.950012f});
162 mandoline.sliceLine({309.049988f, 419});
163 mandoline.sliceLine({357.049988f, 446.049988f});
165
168 canvas->
scale(100, 81);
170 mandoline.sliceConic({-2, 0},
173 {1, 0}, .5f);
174 mandoline.sliceLine({0, 0});
178
181 canvas->
scale(75, 75);
182 mandoline.reset({1, 0});
183 constexpr int nquads = 5;
184 for (
int i = 0;
i < nquads; ++
i) {
187 mandoline.sliceQuadratic({cosf(theta1)*2, sinf(theta1)*2},
188 {cosf(theta2), sinf(theta2)});
189 }
192 }
constexpr SkColor SK_ColorWHITE
#define SkDegreesToRadians(degrees)
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)