1 // 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 "tools/fiddle/examples.h"
4 // HASH=2bffb6384cc20077e632e7d01da045ca
5 REG_FIDDLE(Paint_053, 256, 200, false, 0) {
6 void draw(SkCanvas* canvas) {
8 paint.setStyle(SkPaint::kStroke_Style);
9 paint.setStrokeWidth(20);
15 for (SkPaint::Cap c : { SkPaint::kButt_Cap, SkPaint::kRound_Cap, SkPaint::kSquare_Cap } ) {
16 paint.setStrokeCap(c);
17 canvas->drawPath(path, paint);
18 canvas->translate(0, 70);