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
Member of the Anti Hacker Alliance

Select a language if you need :

Page chargée en 0.032 sec.

Dernière Modification : Dim 28 Avril 2019 12:45
Copyright © 1999-2019 Jean-Paul Molina Tous droits réservés.

to Google