Post: Rainbow Function c# by EnVatoHD
01-15-2014, 09:33 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Rainbow Function c#


So i know its easy but i made this for beginners and i fixed it so it goes to 255 up then when the color is 255 it goes down to 1 and it will return it ...

This is just for Ghosts but you can convert it with brain:3

     private static void Rainbow(uint index,  int b,int a)
{
for (int ii = 1; ii < 9; ii++)
{
if (ii == Cool Man (aka Tustin)
{

for (int i = 8; ii > 1; i--)
{
Hud.ChangeAlpha(index, i, i, b, a);


if (i == 1)
{
ii = 1;
}
}
if (ii == 1)
{
ii++;
}

}
Hud.ChangeAlpha(index, ii, ii, b, a);


}


if your menu freeze you have to make a backgroundworker or a new thread like this:

         
Thread thread = new Thread(new ThreadStart(WorkThreadFunction));
thread.Start();





Enjoy :33
(adsbygoogle = window.adsbygoogle || []).push({});

The following user thanked xZitronenMoDz for this useful post:

Fatality

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo