Rotating triangle filled with gradient colors
The goal is to show (using only a script) how to rotate a triangle around a vertical axis so we get a 3D effect.
⇒ animation ⇐
Principle
2 points of triangle will follow an ellipse, these 2 points being symmetrical.
We 'll use a timer.
Let's describe the different stages right now.
Création des Objets
Set up general sizes 400x300. Background color : 3399CC. Frame rate = 30.
Script
1 - Enter the following script :
That's it. Save then export : triangle. Test !

