// ColorOverlayShader.qml
import QtQuick 2.15
    Rectangle {
        id: mainContent
        anchors.fill: parent
        color: "blue"

        // Clip the rectangle to a shape
        clip: true

        Shape {
            anchors.fill: parent

            // Custom Path defined as a vector
            Path {
                PathSvg {
                    path: "M10,80 C40,10 65,10 95,80 S150,150 180,80" // Vector path
                }
            }

            ShapePath {
                strokeColor: "transparent" // No stroke, act only as the mask
                fillColor: "blue"
                fillGradient: Gradient {
                    GradientStop { position: 0.0; color: "yellow" }
                    GradientStop { position: 1.0; color: "orange" }
                }
            }
        }
    }
