227 {
229 paint.setAntiAlias(
true);
230 paint.setStroke(
true);
231
232 canvas->translate(10, 10);
233
234
236 -123.7f, -2.3f, -2, -1, -0.3f, -0.000001f, 0, 0.000001f, 0.3f, 0.7f,
237 1, 1.3f, 1.5f, 1.7f, 1.99999f, 2, 2.00001f, 2.3f, 4.3f, 3934723942837.3f
238 };
239 for (size_t i = 0; i < std::size(sweepAngles); ++i) {
240 sweepAngles[i] *= 180;
241 }
242
243 SkScalar startAngles[] = { -1, -0.5f, 0, 0.5f };
244 for (size_t i = 0; i < std::size(startAngles); ++i) {
245 startAngles[i] *= 180;
246 }
247
248 bool anticlockwise = false;
250 for (size_t i = 0; i < std::size(startAngles) * 2; ++i) {
251 if (i == std::size(startAngles)) {
252 anticlockwise = true;
254 }
256 canvas->save();
257 for (size_t j = 0; j < std::size(sweepAngles); ++j) {
261 anticlockwise, true);
263 canvas->drawPath(
path.detach().setIsVolatile(
true),
paint);
264 canvas->translate(30, 0);
265 }
266 canvas->restore();
267 canvas->translate(0, 40);
268 }
269}
static int sign(SkScalar x)
static void html_canvas_arc(SkPathBuilder *path, SkScalar x, SkScalar y, SkScalar r, SkScalar start, SkScalar end, bool ccw, bool callArcTo)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path