Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Path_addOval.cpp
Go to the documentation of this file.
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.
4// HASH=cac84cf68e63a453c2a8b64c91537704
5REG_FIDDLE(Path_addOval, 256, 120, false, 0) {
6void draw(SkCanvas* canvas) {
8 SkPath oval;
9 oval.addOval({20, 20, 160, 80});
10 canvas->drawPath(oval, paint);
11}
12} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
void drawPath(const SkPath &path, const SkPaint &paint)
const Paint & paint
#define REG_FIDDLE(NAME, W, H, TEXT, I)
Definition examples.h:60