blob: 7d5ee8efee248db362cff719d135024bd6535517 [file] [log] [blame]
Hal Canary6c8422c2020-01-10 15:22:09 -05001// 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"
4REG_FIDDLE(maddash, 400, 200, false, 0) {
5void draw(SkCanvas* canvas) {
6 SkPaint p;
7 p.setColor(SK_ColorRED);
8 p.setAntiAlias(true);
9 p.setStyle(SkPaint::kStroke_Style);
10 p.setStrokeWidth(380);
11
12 SkScalar intvls[] = {2.5, 10000};
13 p.setPathEffect(SkDashPathEffect::Make(intvls, 2, 0));
14
15 canvas->drawCircle(0, 100, 200, p);
16}
17} // END FIDDLE