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 ⇐


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.


1 - Enter the following script :

That's it. Save then export : triangle. Test !


Si vous aimez le site


Select a language if you need :

Page chargée en 0.003 sec.

Dernière Modification : Ven 9 Fevrier 2018 19:59
Copyright © 1999-2018 Jean-Paul Molina Tous droits réservés.

to Google