blob: 5ecfff50b6ef917bfdc92ac9d59322b55eead7e2 [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=214b559d75c65a7bef6ef4be1f860053
5REG_FIDDLE(Paint_037, 256, 128, false, 0) {
6void draw(SkCanvas* canvas) {
7 SkPaint paint;
8 paint.setColor(0x8000FF00); // transparent green
9 canvas->drawCircle(50, 50, 40, paint);
10 paint.setARGB(128, 255, 0, 0); // transparent red
11 canvas->drawCircle(80, 50, 40, paint);
12 paint.setColor(SK_ColorBLUE);
13 paint.setAlpha(0x80);
14 canvas->drawCircle(65, 65, 40, paint);
15}
16} // END FIDDLE