blob: b052bfcfa9c3a6a7cbe1f20e6e54eae46a6c1b2e [file] [log] [blame]
Hal Canary83c2f702019-03-07 14:53:03 -05001// 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.
3#include "fiddle/examples.h"
4// HASH=bcf5baea1c66a957d5ffd7b54bbbfeff
5REG_FIDDLE(Canvas_042, 256, 192, false, 0) {
6void draw(SkCanvas* canvas) {
7 SkPaint paint;
8 SkFont font(nullptr, 96);
9 canvas->drawString("A1", 130, 100, font, paint);
10 canvas->rotate(180, 130, 100);
11 canvas->drawString("A1", 130, 100, font, paint);
12}
13} // END FIDDLE