blob: 8a829b89e1a879ef1e207da8326b786239cc9ff7 [file] [log] [blame]
Hal Canary6c8422c2020-01-10 15:22:09 -05001// 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.
3#include "tools/fiddle/examples.h"
4REG_FIDDLE(bug7573, 256, 256, false, 0) {
5void draw(SkCanvas* canvas) {
6 SkPaint p;
7 p.setAntiAlias(true);
8 canvas->scale(0.196f * 2, 0.196f * 2);
9 SkPath path;
10 path.moveTo(SkBits2Float(0x40a1a3f7), SkBits2Float(0x41b80159)); // 5.05127f, 23.0007f
11 path.lineTo(SkBits2Float(0x42f41a3f), SkBits2Float(0x41d00159)); // 122.051f, 26.0007f
12 path.lineTo(SkBits2Float(0x42f3e5c1), SkBits2Float(0x41effea7)); // 121.949f, 29.9993f
13 path.lineTo(SkBits2Float(0x409e5c09), SkBits2Float(0x41d7fea7)); // 4.94873f, 26.9993f
14 path.lineTo(SkBits2Float(0x40a1a3f7), SkBits2Float(0x41b80159)); // 5.05127f, 23.0007f
15 path.close();
16 canvas->drawPath(path, p);
17}
18} // END FIDDLE