summaryrefslogtreecommitdiffstats
path: root/tests/manual/graphicaleffects5/MaskedBlurEffect.qml
blob: fb38061838813e35073a94f36dcf35e4a825fa6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick
import Qt5Compat.GraphicalEffects

Item {
    RadialGradient {
        id: gradient
        visible: false
        anchors.fill: parent
        gradient: Gradient {
            GradientStop { position: 0.0; color: Qt.rgba(1, 1, 1, 1) }
            GradientStop { position: 1.0; color: Qt.rgba(1, 1, 1, 0) }
        }
    }

    MaskedBlur {
        anchors.fill: parent
        source: bug
        maskSource: gradient
        radius: 8
        samples: 16
    }
}