[Ajuda] cores random
#4

pawn Код:
stock randomColor() {
    return (random(0xFF) << (3 * 8)) | (random(0xFF) << (2 * 8)) | (random(0xFF) << (1 * 8)) | 0xFF;
}
Retorna uma cor aleatуria. As possibilidades sгo de 2 ^ 24.
Reply


Messages In This Thread
cores random - by xPaulistaa - 13.03.2013, 00:09
Re: cores random - by Josma_cmd - 13.03.2013, 00:15
Re: cores random - by xPaulistaa - 13.03.2013, 00:24
Re: cores random - by steki. - 13.03.2013, 00:26
Re: cores random - by xPaulistaa - 13.03.2013, 00:28
Re: cores random - by steki. - 13.03.2013, 00:31
Re: cores random - by xPaulistaa - 13.03.2013, 00:35

Forum Jump:


Users browsing this thread: 1 Guest(s)