Have a go hero – Animating the sun's rays

By now, you should be an animation expert. If you want to try your skills, here's a task for you. The following code can be applied to the sun object and will display very simple red rays emitted from the sun:

Item {     id: sunRays     property int count: 10     width: sunVisual.width     height: width     anchors.centerIn: parent     z: -1     Repeater {         model: sunRays.count         Rectangle {             color: "red"             rotation: index * 360 / sunRays.count             anchors.fill: parent         }    }} 

The result is shown on the following picture:

The goal is to animate the rays so that the overall effect looks good and fits the tune like style of the ...

Get Game Programming using Qt 5 Beginner's Guide - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.