Debian Codegraph @

docs/examples/skpaint_blur_mask_filter.cpp

raw
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(skpaint_blur_mask_filter, 256, 256, false, 0) {
5 void 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