Hello. I’m trying to create an effect where I apply a transformation to a mask object, however the OpacityMask seems to only apply the original mask without the rotation. Here is some example code:
import Felgo 3.0
import QtQuick 2.0
import QtGraphicalEffects 1.0
App {
property real l: 100
Rectangle {
id: bg
anchors.centerIn: parent
width: l
height: l
color: "red"
visible: false
}
Rectangle {
id: mask
anchors.centerIn: parent
width: l
height: l
visible: false
NumberAnimation on rotation {
duration: 5000
running: true
from: 0
to: 360
loops: Animation.Infinite
}
}
OpacityMask {
width: l
height: l
anchors.centerIn: parent
source: bg
maskSource: mask
}
}
Thanks,
Phil