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 !

 


Si vous aimez le site

 

Select a language if you need :


Page chargée en 0.003 sec.

Dernière Modification : Mer 25 Janvier 2017 8:56
Copyright © 1999-2017 Jean-Paul Molina Tous droits réservés.

to Google