Quote:
Originally Posted by MPDev
While developing the Wall I found that random colors didn't render well and I got alot of purple or brown even when it was trying to render some off yellow color. Sticking close to primaries will ensure as close as possible colors.
|
i've been playing with this, it's a matter of php's favouritism to certain numbers, i've been trying to circumvent this with
PHP Code:
$randred = mt_rand(1,255);
$randgreen = ceil(rand(1,85) + ceil(rand(1,170) / 2) + rand(1,85));
$randblue = ceil(rand(1,510) / 2);
but really i'm just playing with it.