Debian Codegraph @

tests/manual/graphicaleffects5/MaskedBlurEffect.qml

raw
1 // Copyright (C) 2022 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4 import QtQuick
5 import Qt5Compat.GraphicalEffects
6
7 Item {
8 RadialGradient {
9 id: gradient
10 visible: false
11 anchors.fill: parent
12 gradient: Gradient {
13 GradientStop { position: 0.0; color: Qt.rgba(1, 1, 1, 1) }
14 GradientStop { position: 1.0; color: Qt.rgba(1, 1, 1, 0) }
15 }
16 }
17
18 MaskedBlur {
19 anchors.fill: parent
20 source: bug
21 maskSource: gradient
22 radius: 8
23 samples: 16
24 }
25 }