Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
crbug_663246.cpp
Go to the documentation of this file.
1// 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.
4REG_FIDDLE(crbug_663246, 384, 256, false, 0) {
5void draw(SkCanvas* canvas) {
6 SkPaint p;
7 p.setAntiAlias(true);
8 p.setStyle(SkPaint::kStroke_Style);
9 canvas->scale(0.5, 0.5);
10
11 p.setStrokeWidth(195.23635741822847);
12 SkPath path;
13 path.moveTo(488, 182.10368918639688);
14 path.cubicTo(572, 182.10368918639688, 572, 97.61817870911423, 655, 97.61817870911423);
15 p.setColor(SK_ColorGREEN);
16 canvas->drawPath(path, p);
17
18 p.setStrokeWidth(504.6189756548017);
19 path.reset();
20 path.moveTo(20, 252.30948782740091);
21 path.cubicTo(31, 252.30948782740091, 31, 278.79312771879796, 41, 278.79312771879796);
22 p.setColor(SK_ColorRED);
23 canvas->drawPath(path, p);
24}
25} // END FIDDLE
constexpr SkColor SK_ColorRED
Definition SkColor.h:126
constexpr SkColor SK_ColorGREEN
Definition SkColor.h:131
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition aaclip.cpp:27
void drawPath(const SkPath &path, const SkPaint &paint)
void scale(SkScalar sx, SkScalar sy)
@ kStroke_Style
set to stroke geometry
Definition SkPaint.h:194
#define REG_FIDDLE(NAME, W, H, TEXT, I)
Definition examples.h:60