21 property real amplitude: 0
22 property int totalCount
23 property int ballIndex
25 var t = amplitude / 0.6
27 return units.gu(0.25) + units.gu(5) * t
29 visible: amplitude != 0
37 var dampenAfterThisIndex = 7
38 if (ballIndex < dampenAfterThisIndex) {
39 t = (totalCount - ballIndex) / totalCount
40 return Math.pow(t, 4);
42 t = (totalCount - dampenAfterThisIndex) / totalCount
45 return 0.09 + t * (totalCount - ballIndex) / (totalCount - dampenAfterThisIndex)
49 property double orbitRadius: ((parent.width - units.gu(6)) / 2)
50 x: -(width / 2) + (parent.width / 2) + orbitRadius * Math.sin((ballIndex / totalCount) * (2 * Math.PI))
51 y: -(height / 2) + (parent.height / 2) - orbitRadius * Math.cos((ballIndex / totalCount) * (2 * Math.PI))