1 // Copyright 2020 Google LLC.
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
3 #include "tools/fiddle/examples.h"
4 REG_FIDDLE(SkParsePath_FromSVGString, 256, 256, false, 0) {
5 void draw(SkCanvas* canvas) {
6 const char pathString[] =
16 SkParsePath::FromSVGString(pathString, &path);
18 paint.setAntiAlias(true);
19 paint.setStyle(SkPaint::kStroke_Style);
20 paint.setStrokeCap(SkPaint::kRound_Cap);
21 paint.setStrokeWidth(2);
22 canvas->drawPath(path, paint);