6c8422c671
ignore offscreen, srgb, and animated fiddles for now. Change-Id: I923131b684865698e6cda138b004930e11f504d5 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/263713 Commit-Queue: Hal Canary <halcanary@google.com> Reviewed-by: Ben Wagner <bungeman@google.com>
22 lines
651 B
C++
22 lines
651 B
C++
// Copyright 2020 Google LLC.
|
|
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
|
#include "tools/fiddle/examples.h"
|
|
REG_FIDDLE(bezier_curves, 256, 256, false, 5) {
|
|
void draw(SkCanvas* canvas) {
|
|
canvas->drawColor(SK_ColorWHITE);
|
|
|
|
SkPaint paint;
|
|
paint.setStyle(SkPaint::kStroke_Style);
|
|
paint.setStrokeWidth(8);
|
|
paint.setColor(0xff4285F4);
|
|
paint.setAntiAlias(true);
|
|
paint.setStrokeCap(SkPaint::kRound_Cap);
|
|
|
|
SkPath path;
|
|
path.moveTo(10, 10);
|
|
path.quadTo(256, 64, 128, 128);
|
|
path.quadTo(10, 192, 250, 250);
|
|
canvas->drawPath(path, paint);
|
|
}
|
|
} // END FIDDLE
|