E' più leggibile una funzione che presenta uno standard rgb come imagecolorallocate.

Comunque fossero questi i problemi che si presentano ad un programmatore