blob: bc8f3b2d3d82956bade1bc9a3697f22a6b05b490 [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=a4e877e891b1be5faa2b7fd07f673a10
5REG_FIDDLE(Canvas_088, 256, 64, false, 4) {
6void draw(SkCanvas* canvas) {
7 // sk_sp<SkImage> image;
8 canvas->drawImage(image, 0, 0);
9 SkPaint paint;
10 canvas->drawImage(image, 80, 0, &paint);
11 paint.setAlpha(0x80);
12 canvas->drawImage(image, 160, 0, &paint);
13}
14} // END FIDDLE