blob: efc2c4f94380f51658fd98a327c9605071459676 [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(skpaint_blur_mask_filter, 256, 256, false, 0) {
5void draw(SkCanvas* canvas) {
6 canvas->drawColor(SkColorSetARGB(0xFF, 0xFF, 0xFF, 0xFF));
7 SkPaint paint;
8 paint.setMaskFilter(SkMaskFilter::MakeBlur(kNormal_SkBlurStyle, 5.0f));
9 sk_sp<SkTextBlob> blob = SkTextBlob::MakeFromString("Skia", SkFont(nullptr, 120));
10 canvas->drawTextBlob(blob.get(), 0, 160, paint);
11}
12} // END FIDDLE