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 !


Member of the Anti Hacker Alliance

Select a language if you need :

Page chargée en 0.034 sec.

Dernière Modification : Mer 29 Avril 2020 10:57
Copyright © 1999-2020 Jean-Paul Molina Tous droits réservés.

to Google