random(256) in one case
So is it possible that the code below will give you become in a case that is not to add all the colors one by one and be in one case again all colors random (256) (to run arbitrary color of the 256?
PHP Code:
|
Re: random(256) in one case
I don't understand what you are asking.
|
Re: random(256) in one case
The code is for the nemesis aura, now i have to add all 256 colors one by one this is hard because i don't have enough time so i want to add all 256 colors in one case :)
|
Re: random(256) in one case
Is there a mathematical relationship between the case and the respective RGB values?
Example, is there any relationship between: case 12..17 and rgbaura = {190, 190, 190} case 18..23 and rgbaura = {25, 25, 112} |
Re: random(256) in one case
Quote:
for example PHP Code:
|
Re: random(256) in one case
I was thinking, is there any way to mathematically derive 25,25,112 with the respecitve case 0..5. I dont think there is, they all look random
|
Re: random(256) in one case
Basically, if you don't have a mathematical method (a forumula) for determining the what the R, G, and B values are for each case then it's not possible to not write them all out.
UNLESS, you are actually meaning that you want R to be random, G to be random, and B to be random (this will give you a random color every time). In this case, you can do this: PHP Code:
|
Re: random(256) in one case
Where exactly i have to add it ?
|
Re: random(256) in one case
just delete switch and case and add this instead of it
PHP Code:
|
| All times are GMT -4. The time now is 17:49. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.