Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Repeater{
- model:346/4
- Rectangle {
- id:noise
- smooth: true
- antialiasing: true
- z:-3
- width: 100
- height: 4
- color: "lightgrey"
- opacity:0.5
- transform: Rotation{
- angle: index*4+8
- origin.x: 0
- origin.y: 2
- }
- x: parent.width / 2 + (ancCircle.width+3) / 2 * Math.cos((index*4+8) * Math.PI / 180)
- y: parent.height / 2 + (ancCircle.width+3) / 2 * Math.sin((index*4+8) * Math.PI / 180) - height/2
- NumberAnimation {
- id: animNoise
- target: noise;
- property: "width";
- duration: 1000;
- easing.type: Easing.InQuad
- property bool first: true
- from: 50
- to: index
- onStopped: {
- animNoise.from = noise.width;
- animNoise.to = Math.ceil(Math.random() * 30)+parent.fixedRandomNoiseCoeff;
- animNoise.duration = 2000;
- easing.type = Easing.Linear
- if(Qt.application.active) animNoise.start();
- }
- }
- Component.onCompleted: {
- animNoise.start();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement