Hal Canary | 6c8422c | 2020-01-10 15:22:09 -0500 | [diff] [blame] | 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. |
| 3 | #include "tools/fiddle/examples.h" |
| 4 | REG_FIDDLE(crbug_663246, 384, 256, false, 0) { |
| 5 | void 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 |