Computer Science Canada Colour Changer |
Author: | ericfourfour [ Fri Nov 03, 2006 4:16 pm ] | ||||||||||||||||
Post subject: | Colour Changer | ||||||||||||||||
This program allows you to add a blending colour effect very easily. Here is the source:
Here is a program that uses it:
You can set the duration between colours (how long the transition is). You can also use an unlimited amount of colours. It is fps independent meaning if you set the duration to 1000 milliseconds and your delay is 10 or you delay is 273 it will always be at the next colour after 1000 milliseconds (although 1000 isn't a multiple of 273 so it technically can't reach the next colour. However it would still be at its respective colour in the transition). To set the duration:
To add a colour:
To remove the colours:
To update the object:
To get the colour:
To tell if the colour was switched in the previous update:
|
Author: | Hackmaster [ Sat Dec 09, 2006 10:09 am ] |
Post subject: | |
that's nice, eric. now animate it! move it across the screen! you are halfway to making that flowerbox screensaver for windows! or, alterativley, make it the whole screen! |