blob: b430bf0e43f10ce70df39a4a660c9bbbc4d9a600 [file] [log] [blame]
Hal Canary83c2f702019-03-07 14:53:03 -05001// Copyright 2019 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 "fiddle/examples.h"
4// HASH=8cf5684b187d60f09e11c4a48993ea39
5REG_FIDDLE(Paint_075, 256, 160, false, 0) {
6void draw(SkCanvas* canvas) {
7 SkPaint paint;
8 paint.setStyle(SkPaint::kStroke_Style);
9 paint.setStrokeWidth(16);
10 SkScalar intervals[] = {30, 10};
11 paint.setPathEffect(SkDashPathEffect::Make(intervals, SK_ARRAY_COUNT(intervals), 1));
12 canvas->drawRoundRect({20, 20, 120, 120}, 20, 20, paint);
13}
14} // END FIDDLE